Linux tftp command
Linux tftp command is used to transfer files.
FTP allows users to download files stored on the remote host, but also be able to upload files to the remote host is placed. tftp is a simple text mode ftp program instructions it uses similar to FTP.
grammar
tftp [主机名称或IP地址]
Instructions:
- connect: connect to remote tftp server
- mode: File Transfer Profile
- put: Upload file
- get: download file
- quit: Exit
- verbose: Displays detailed process information
- tarce: Display package path
- status: Displays the current state information
- binary: binary transfer mode
- ascii: ascii transfer mode
- rexmt: set packet transmission timeout
- timeout: set the retransmission timeout
- help: help
- ?: Help
Examples
Connect to remote server "218.28.188.288", and then use the put command to download one file in the root directory of the "README", use the following command:
tftp 218.28.188.288 #连接远程服务器
After the connection to the server can be the appropriate action, as follows:
$ 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