Linux tftp命令詳解 Linux tftp命令怎麼用

來源:互聯網
上載者:User

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.