FTP allows users to download files stored on the remote host and upload files to the remote host. Tftp is a simple text-mode ftp program, which uses commands similar to FTP.
Syntax
Tftp [host name or IP address]
Operation instructions:
- Connect: connect to the remote tftp server
- Mode: file transmission mode
- Put: upload files
- Get: download an object
- Quit: exit
- Verbose: displays detailed processing information
- Tarce: Display package path
- Status: displays the current status.
- Binary: binary transmission mode
- Ascii: ascii transfer mode
- Rexmt: Set the packet transmission timeout.
- Timeout: set the retransmission timeout.
- Help: help information
- ? : Help information
Instance
Connect to the remote server "218.28.188.288", and then use the put command to download the file "README" in the root directory. The command is as follows:
Tftp 218.28.188.288 # connect to the remote server
After connecting to the server, you can perform the following operations:
$ Tftp 218.28.188.228 # connect to the remote server
Tftp>? # Use ?, Reference Help
Commands may be abbreviated. Commands are: # HELP command list
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 # remote download of README files
Getting from 218.28.188.288 to/home/cmd
Recived 168236 bytes in 1.5 seconds [112157 bit/s]
Tftp> quit # exit tftp