Linux tftp Command
The Linux tftp command is used for file transfer.
FTP allows users to download files stored on remote hosts and upload files to remote hosts. tftp is a simple text-mode ftp program that uses similar commands to FTP.
Syntax
tftp [hostname or IP address]
Operation Instructions:
- connect: Connect to a remote tftp server
- mode: File transfer mode
- put: Upload a file
- get: Download a file
- quit: Exit
- verbose: Display detailed processing information
- trace: Display packet path
- status: Display current status information
- binary: Binary transfer mode
- ascii: ASCII transfer mode
- rexmt: Set packet transmission timeout
- timeout: Set retransmission timeout
- help: Help information
- ?: Help information
Example
Connect to the remote server "218.28.188.288" and then use the put command to download the file "README" from its root directory. The command can be used as follows:
tftp 218.28.188.288 # Connect to the remote server
After connecting to the server, you can perform the corresponding operations as follows:
$ tftp 218.28.188.228 # Connect to the remote server
tftp> ? # Use ?, refer to help
Commands may be abbreviated. Commands are: # Help command list
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 # Download README file remotely
getting from 218.28.188.288 to /home/cmd
Received 168236 bytes in 1.5 seconds [112157 bit/s]
tftp>quit # Exit tftp