Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

Linux 終端 FTP 實戰指令大全:連線、列表、上傳、下載、切換目錄

編輯:關於 Linux

連線與登入

ftp host.example.com
Name: user
Password: ********

常用指令

指令功能
ls列出遠端目錄
pwd顯示遠端當前路徑
cd 目錄切換遠端目錄
get 檔案下載單一檔案
mget 檔案*下載多檔案
put 檔案上傳單一檔案
mput 檔案*上傳多檔案
bye登出並離開

實戰範例

ftp rws60001rems.us.oracle.com
Connected to rws60001rems.us.oracle.com (139.185.21.141).
220 (vsFTPd 1.2.1)
Name: xxxxx
331 Please specify the password.
Password:
230 Login successful.
ftp> ls
227 Entering Passive Mode (139,185,21,141,216,189)
150 Here comes the directory listing.
-rw-r--r-- 1 60202384 60402384 524 Aug 08 00:37 temp1.out
226 Directory send OK.
ftp> get temp1.out
local: temp1.out remote: temp1.out
226 File send OK.
524 bytes received in 0.0017 secs (3e02 Kbytes/sec)
ftp> put INVLTENT.plx_bk
226 File receive OK.
331776 bytes sent in 0.00457 secs (7.1e04 Kbytes/sec)
ftp> bye
221 Goodbye.

結語

熟練 ftp 指令集,即可在無圖形介面環境高效完成檔案傳輸與遠端目錄操作。

Copyright © Windows教程網 All Rights Reserved