English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Linux ncftp command is used for file transfer.
FTP允许用户下载存储在服务器主机的文件,也能将文件上传到远程主机。
NcFTP是文字模式FTP程序的佼佼者,它具备多样特色,包括显示传输速率,下载进度,自动续传,标记书签,可通过防火墙和代理服务器等。
当未指定用户名时,ncftp命令会自动尝试使用匿名账户anonymous去连接远程FTP服务 服务器,无需用户输入账号和密码。
ncftp [主机或IP地址]
参数说明:
使用ncftp命令匿名连接FTP服务器。
例如,如果您想匿名连接ftp.kernel.org服务器,同时不想输入anonymous等匿名用户名,可以直接使用ncftp命令:
ncftp ftp.kernel.org
得到如下信息:
$ ncftp ftp.kernel.org #匿名连接ftp.kernel.org服务器 NcFTP 3.2.1 (Jul 29, 2007) 由Mike Gleason (http://www.NcFTP.com/联系/). #ncftp版权、版本等信息 版权(c) 1992-2005 由Mike Gleason。 版权所有。 正在连接到 149.20.20.133... #连接服务器 欢迎使用ftp.kernel.org。 登录中... #匿名登录 欢迎来到#欢迎信息 LINUX内核存档 ftp.kernel.org “不仅仅是内核” 如果您通过网页浏览器访问本站 请使用以下HTTP URL代替! ----如果您正在寻找镜像站点,请访问<---- ----请使用< mirrors.kernel.org >代替---- 本站由Linux内核提供作为公共服务 组织,一家加利福尼亚州的非营利性公司。带宽是 由互联网软件 consortium,Inc.提供。我们的服务器是 位于加利福尼亚州旧金山和帕洛阿尔托;俄勒冈州的科瓦利斯; 荷兰阿姆斯特丹和瑞典乌梅;违反任何 严格禁止。 由于美国出口法规,本网站上所有的加密软件 本网站受以下法律声明的约束: 本网站包括公开可用的加密源代码 与编译产生的目标代码一起, 公开可用的源代码,可以从美国 根据许可证例外“TSU”根据 15 C.F.R.第 740.13(e). 本法律声明仅适用于加密软件。请参阅 工业和安全局(http://www.bis.doc.gov/)更多信息 关于当前美国法规的信息。 既不是Linux内核组织,也不是其赞助商做出任何 guarantees, explicit or implicit, about the contents of this site. Use at your own risk. This site is accessible via the following mechanisms: FTP ftp://ftp.kernel.org/pub/ HTTP http://www.kernel.org/pub/ RSYNC rsync://rsync.kernel.org/pub/ NFS and SMB/CIFS are no longer available. For comments on this site, please contact <[email protected]>. Please do not use this address for questions that are not related to the operation of this site. Please see our homepage at http://www.kernel.org/ for links to Linux documentation resources. Login successful. Logged in to ftp.kernel.org. ncftp / >
Tip: The command prompt of ncftp is "ncftp / >" instead of "ftp" in ftp / >".
Use ncftp commands to operate and download files.
The ncftp commands are basically the same as ftp, for example, you can use the "cd" command to switch to the current directory on the FTP server, use the "ls" command to list the contents of the current directory, and use the "get" command to download/The README file under the "pub" directory, and to exit ncftp, use "quit". The operation result is as follows:
ncftp / > pwd # View the current path ftp://ftp.kernel.org # The current path is the root directory ncftp / > ls # List the current directory bin/ for_mirrors_only/ pub/ dev/ lib/ usr@ etc/ lost+found/ welcome.msg@ ncftp / > cd pub # Switch to the pub subdirectory Directory successfully changed. ncftp /pub > ls #View the directory list of pub dist/ media/ scm/ index.html RCS/ site/ linux/ README software/ lost+found/ README_ABOUT_BZ2_FILES tools/ ncftp /pub > get README #Download README file README: 1.87 KB 10.39 KB/s ncftp /pub > quit #Exit ncftp
Unlike ftp, ncftp will prompt the user whether to save the FTP server as a bookmark for next login, where users can perform operations such as custom bookmark names, as shown below:
You have not saved a bookmark for this site. #Exit prompt information Would you like to save a bookmark to: ftp://ftp.kernel.org/pub/ Save? (yes/no) yes #Confirm whether to save Enter a name for this bookmark, or hit enter for "kernel": kernel #Input bookmark name Bookmark "kernel" saved.