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 指令集,即可在無圖形介面環境高效完成檔案傳輸與遠端目錄操作。