Linux tftp命令
Linux tftp命令用於傳輸檔。
FTP讓用戶得以下載存放於遠端主機的檔,也能將檔上傳到遠端主機放置。tftp是簡單的文字模式ftp程式,它所使用的指令和FTP類似。
語法
tftp [主機名稱或IP地址]
操作說明:
- connect:連接到遠程tftp伺服器
- mode:檔傳輸模式
- put:上傳檔
- get:下載檔
- quit:退出
- verbose:顯示詳細的處理資訊
- trace:顯示包路徑
- 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