Latest web development tutorials

Linuxのncftpのコマンド

LinuxのコマンドDaquanの LinuxのコマンドDaquanの

リナックスncftpのコマンドは、ファイルを転送するために使用されます。

FTPは、ユーザーがサーバホストに保存されたファイルをダウンロードすることができます、だけでなく、リモートホストに配置されているにファイルをアップロードすることができます。

NcFTPのは、ファイアウォールやプロキシサーバーを介して表示伝送速度、ダウンロードの進行状況、自動復帰、標準ライブブックマークなどの機能の様々な、含まれるテキストモードFTPプログラム、のリーダーです。

ユーザー名を指定しない場合には、ncftpのコマンドが自動的に匿名アカウントに匿名FTPサーバーを使用して接続しようとし、ユーザーは、アカウント番号とパスワードを入力する必要はありません。

文法

ncftp [主机或IP地址]

パラメータ説明:

  • ユーザー名-u <ユーザー名>は、ログインのFTPサーバーを指定します
  • -p <パスワード>を設定ユーザーパスワード
  • -P <ポート番号> FTPポートを指定し、デフォルトは21です
  • -j <アカウント>アカウントの指定
  • -hヘルプ
  • -vバージョン情報

匿名FTPサーバー接続を使用してncftpのコマンドを実行します。

たとえば、匿名でftp.kernel.orgサーバーを接続すると、匿名などを匿名ユーザー名を入力する必要はありません、直接ncftpのコマンドを使用することができます。

ncftp ftp.kernel.org

以下の情報を得ます:

$ ncftp ftp.kernel.org #匿名连接ftp.kernel.org服务器  
NcFTP 3.2.1 (Jul 29, 2007) by Mike Gleason (http://www.NcFTP.com/contact/).  
#ncftp版权、版本等信息  
Copyright (c) 1992-2005 by Mike Gleason.  
All rights reserved.  
Connecting to 149.20.20.133... #连接服务器  
Welcome to ftp.kernel.org.  
Logging in... #匿名登录  
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 / > 

ヒント:ncftpのコマンドプロンプトは "ncftpの/>"の代わりに、FTP「FTP /> "です。

ncftpのコマンド操作を使用して、ファイルをダウンロードしてください。

ncftpのftpコマンドは基本的に同じ、たとえば、README "/パブ"ディレクトリをダウンロードするには、「取得」コマンドを使用して、現在のディレクトリの内容を一覧表示するコマンドの "ls"を使用し、現在のディレクトリにFTPサーバーをオンにし、「CD」コマンドを使用することができますファイルには、「終了」のようにncftpのままにしてください。 次のように業績は以下の通りでした。

ncftp / > pwd               #查看当前路径  
ftp://ftp.kernel.org        #当前路径为根目录  
ncftp / > ls                #查看当前目录列表  
bin/ for_mirrors_only/ pub/  
dev/ lib/ usr@  
etc/ lost+found/ welcome.msg@  
ncftp / > cd pub            #切换目录到pub 子目录  
Directory successfully changed.  
ncftp /pub > ls             #查看pub 的目录列表  
dist/ media/ scm/  
index.html RCS/ site/  
linux/ README software/  
lost+found/ README_ABOUT_BZ2_FILES tools/  
ncftp /pub > get README     #下载README 文件  
README: 1.87 KB 10.39 KB/s  
ncftp /pub > quit           #离开ncftp 

違いは、次回のログオン時に、ユーザーが本の署名をカスタマイズすることができるように、次のようにこの時点でのftp、ncftpので、ユーザは、ブックマークとしてFTPサーバーを保存するように求められますかどうかということです。

You have not saved a bookmark for this site.  #离开提示信息  
Would you like to save a bookmark to:  
ftp://ftp.kernel.org/pub/  
Save? (yes/no) yes                            #确认是否保存  
Enter a name for this bookmark, or hit enter for "kernel": kernel #输入书签名  
Bookmark "kernel" saved. 

LinuxのコマンドDaquanの LinuxのコマンドDaquanの