Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the common command ncftp in Linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the Linux commonly used command ncftp how to use, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

Linux commonly used commands ncftp commands for file transfer, NcFTP is a text mode FTP program leader, it has a variety of features, including display transfer rate, download progress, automatic continuation, marking bookmarks, through the firewall and proxy server and so on.

Syntax ncftp [host or IP address] parameter description:

-u specifies the user name to log in to the FTP server

-p set user password

-P specifies the FTP port number, which defaults to 21

-j specified account number

-h help information

-v version information

The instance uses the ncftp command to connect to the FTP server anonymously.

For example, if you want to connect to the ftp.kernel.org server anonymously and do not want to enter an anonymous user name such as anonymous, you can directly use the ncftp command:

Ncftp ftp.kernel.org gets 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 and other information Copyright (c) 1992-2005 by Mike Gleason. All rights reserved. Connecting to 149.20.20.133... # Connect to the server Welcome to ftp.kernel.org. Logging in... # Anonymous login to Welcome to the # Welcome information 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. 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 / > prompt: the command prompt for ncftp is "ncftp / >", not "ftp / >" in ftp.

Use the ncftp command to operate and download files.

The command of ncftp is basically the same as ftp. For example, you can use the "cd" command to change the current directory in the FTP server, use the "ls" command to list the current directory contents, use the "get" command to download the README file under the "/ pub" directory, use "quit" to leave ncftp, and so on. The operation results are as follows:

Ncftp / > pwd # View current path ftp://ftp.kernel.org # current path is root ncftp / > ls # View current directory list bin/ for_mirrors_only/ pub/ dev/ lib/ usr@ etc/ lost+found/ welcome.msg@ ncftp / > cd pub # switch directory to 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 the README file README: 1.87 KB 10.39 KB/s ncftp / pub > quit # unlike ftp, ncftp prompts the user whether to bookmark the FTP server to facilitate the next login Users can customize book signatures and other operations, as shown below:

You have not saved a bookmark for this site. # departure 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 book signature Bookmark "kernel" saved. Thank you for reading this article carefully. I hope the article "how to use Linux commands ncftp" shared by the editor will be helpful to everyone. At the same time, I hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report