linux-tftp

查看 tftp server

netstat  -an|grep 69

# in either case you should see something like:
# udp 0 0 0.0.0.0:69 ...
# If there is a current TFTP server running on your system.
tftp [option] ... host [port]

-g 表示下载文件 (get)
-p 表示上传文件 (put)
-l 表示本地文件名 (local file)
-r 表示远程主机的文件名 (remote file)

下载

tftp -g -r ftp.sh 192.168.0.147

上传

tftp -p -l log.txt 192.168.0.121