Easy Tutorial
❮ Linux Comm Clear Linux Comm Scp ❯

Linux ncftp Command

Linux Command Manual

The Linux ncftp command is used for file transfer.

FTP allows users to download files stored on server hosts and upload files to remote hosts.

NcFTP is the best in its class among text mode FTP programs. It offers various features, including displaying transfer rates, download progress, automatic resumption, bookmarking, and the ability to pass through firewalls and proxy servers.

When no username is specified, the ncftp command will automatically attempt to connect to the remote FTP server using the anonymous account anonymous, without requiring the user to enter a username and password.

Syntax

ncftp [host or IP address]

Parameter Description:

Example

Use the ncftp command to anonymously connect to an FTP server.

For example, to anonymously connect to the ftp.kernel.org server without entering the anonymous username, you can directly use the ncftp command:

ncftp ftp.kernel.org

You will receive the following information:

$ ncftp ftp.kernel.org # Anonymous connection to ftp.kernel.org server
NcFTP 3.2.1 (Jul 29, 2007) by Mike Gleason (http://www.NcFTP.com/contact/).
# ncftp copyright, version, etc.
Copyright (c) 1992-2005 by Mike Gleason.
All rights reserved.
Connecting to 149.20.20.133... # Connecting to the server
Welcome to ftp.kernel.org.
Logging in... # Anonymous login
Welcome to the
LINUX KERNEL ARCHIVES
ftp.kernel.org
"Much more than just kernels"
IF YOU'RE ACCESSING THIS SITE VIA A WEB BROWSER
PLEASE USE THE HTTP URL BELOW INSTEAD!
----> If you are looking for mirror sites, please go <----
----> to mirrors.kernel.org instead <----
This site is provided as a public service by the Linux Kernel
Organization, a California nonprofit corporation. Bandwidth is
provided by The Internet Software Consortium, Inc. Our servers are
located in San Francisco and Palo Alto, California; Corvallis, Oregon;
Amsterdam, Netherlands and Ume., Sweden; use in violation of any
applicable laws strictly prohibited.
Due to U.S. Exports Regulations, all cryptographic software on this
site is subject to the following legal notice:
This site includes publicly available encryption source code
which, together with object code resulting from the compiling of
publicly available source code, may be exported from the United
States under License Exception "TSU" pursuant to 15 C.F.R. Section
740.13(e).
This legal notice applies to cryptographic software only. Please see
the Bureau of Industry and Security (http://www.bis.doc.gov/) for more
Information about current U.S. regulations.
Neither the Linux Kernel Organization, nor its sponsors make any 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 / >

The ncftp command prompt is "ncftp / >", not "ftp / >" as in ftp.

Use ncftp commands to operate and download files.

The commands in ncftp are basically the same as in ftp, such as using the "cd" command to change the current directory on the FTP server, using the "ls" command to list the contents of the current directory, using the "get" command to download the README file in the "/pub" directory, and using "quit" to exit ncftp, etc. The operation results are as follows:

ncftp / > pwd # View current path ftp://ftp.kernel.org # Current path is the root directory ncftp / > ls # View current directory list bin/ for_mirrors_only/ pub/ dev/ lib/ usr@ etc/ lost+found/ welcome.msg@ ncftp / > cd pub # Change directory to the pub subdirectory Directory successfully changed. ncftp /pub > ls # View the pub directory list dist/ media/ scm/ index.html RCS/ site/ linux/ README software/ lost+found/ README_ABOUT_BZ2_FILES tools/ ncftp /pub > get README # Download the README file README: 1.87 KB 10.39 KB/s ncftp /pub > quit # Exit ncftp


Unlike ftp, ncftp will prompt the user to save the FTP server as a bookmark for easy login next time, and the user can customize the bookmark name, as shown below:

You have not saved a bookmark for this site. # Exit prompt message 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 # Enter the bookmark name Bookmark "kernel" saved. ```

Linux Command Manual

❮ Linux Comm Clear Linux Comm Scp ❯