TFTP is very well understood, mainly used to transfer files, the following in my operation to talk about the most important of the TFTP commands.
One. SFTP command on Windows (it is said to be the same on Linux, of course, this refers to non-embedded Linux)
Steps:
A. Open the SFTP server Tftpd32.exe on Windows and select a default directory as the server root, at which point the Tftpd32.exe automatically reads the IP of the PC, which is the IP of the TFTP server, such as 192.168.1.101
B. In cmd in Windows, there is a TFTP command to switch to a corresponding directory, then this directory can actually be understood as the client root directory.
Command 1:tftp 192.168.1.101 put test.txt the command can upload the TFTP client directory Test.txt file to the TFTP server, where the 192.168.1.101 is the service side IIP, put represents the upload.
Command 2:tftp 192.168.1.101 get test.txt the command can download the Test.txt file from the TFTP server directory to the TFTP client, where 192.168.1.101 is the server side IIP and get represents the download.
I just tried it, so that's it!
Two. SFTP command on embedded device Linux
Steps:
A. Open the SFTP server Tftpd32.exe on Windows and select a default directory as the server root, at which point the IP of the PC is automatically read on Tftpd32.exe, which is the IP of the TFTP server, such as 192.168.1.101
B. In the embedded Linux shell, there is a TFTP command (assuming support), switch to a corresponding directory, then this directory can actually be understood as the client root directory.
Command 1:TFTP-PL test.txt 192.168.1.101 the command can upload the TFTP client directory Test.txt file to the TFTP server, where the 192.168.1.101 is the server IP, p is put, L is the local
Command 2:tftp-gr test.txt 192.168.1.101 the command can download the TFTP server directory Test.txt file to the TFTP client, where the 192.168.1.101 is the server IP, g is GET, R is the remote
I've tried it, so. And I often use command 1 to remove files from embedded devices and put them on Windows for analysis
Topsy windows/linux tftp command