FTP讓使用者得以下載存放於遠端主機的檔案,也能將檔案上傳到遠端主機放置。tftp是簡單的文字模式ftp程式,它所使用的指令和FTP類似。
文法
tftp [主機名稱或IP地址]
操作說明:
- connect:串連到遠程tftp伺服器
- mode:檔案傳輸模式
- put:上傳檔案
- get:下載檔案
- quit:退出
- verbose:顯示詳細的處理資訊
- tarce:顯示包路徑
- status:顯示目前狀態資訊
- binary:二進位傳輸模式
- ascii:ascii 傳送模式
- rexmt:設定包傳輸的逾時時間
- timeout:設定重傳的逾時時間
- help:協助資訊
- ? :協助資訊
執行個體
串連遠程伺服器"218.28.188.288",然後使用put 命令下載其中根目錄下的檔案"README",可使用命令如下:
tftp 218.28.188.288 #串連遠程伺服器
串連伺服器之後可進行相應的操作,具體如下:
$ tftp 218.28.188.228 #串連遠程伺服器
tftp> ? #使用?,參考說明
Commands may be abbreviated. Commands are: #協助命令列表
connect connect to remote tftp
mode set file transfer mode
put send file
get receive file
quit exit tftp
verbose toggle verbose mode
trace toggle packet tracing
status show current status
binary set mode to octet
ascii set mode to netascii
rexmt set per-packet retransmission timeout
timeout set total retransmission timeout
? print help information
tftp>get README #遠程下載README檔案
getting from 218.28.188.288 to /home/cmd
Recived 168236 bytes in 1.5 seconds[112157 bit/s]
tftp>quit #離開tftp