BusyBox中的FTP和TFTP的使用

xiaoxiao2021-02-28  118

BusyBox中的FTP和TFTP的使用

分类: 嵌入式

版本:BusyBox-1.17.4 编译过程选择FTP和TFTP相关选项。

TFTP 在终端中输入tftp命令,可以得到以下帮助信息:

BusyBox v1.17.(2010-12-22 10:59:18 CST) multi-call binary. Usage: tftp [OPTIONS] HOST [PORT] Transfer a file from/to tftp server Options:         -l FILE Local FILE         -r FILE Remote FILE         -g Get file         -p Put file         -b SIZE Transfer blocks of SIZE octets

从172.19.6.100服务器上获取rootfs.jffs2文件,前提是在服务器上开启TFTP的服务器,比如TFTPD32.,可以使用如下命令

tftp 172.19.6.100 -g -r rootfs.jffs2

FTP 在终端输入ftpget命令,可以得到以下帮助信息:

BusyBox v1.17.(2010-12-22 10:59:18 CST) multi-call binary. Usage: ftpget [OPTIONS] HOST [LOCAL_FILE] REMOTE_FILE Retrieve a remote file via FTP Options:         -c,--continue Continue previous transfer         -v,--verbose Verbose         -u,--username Username         -p,--password Password         -P,--port Port number

从172.19.6.88服务器上获取asc.bin文件,服务器端的FTP服务器开启,可以使用以下命令

ftpget -u rtos -****** 172.19.6.88 asc.bin

其中rots为用户名,*****为登录密码。

转载请注明原文地址: https://www.6miu.com/read-23348.html

最新回复(0)