BusyBox中的FTP和TFTP的使用

分类: 嵌入式

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

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

  1. BusyBox v1.17.(2010-12-22 10:59:18 CST) multi-call binary.

  2. Usage: tftp [OPTIONS] HOST [PORT]

  3. Transfer a file from/to tftp server

  4. Options:
  5.         -l FILE Local FILE
  6.         -r FILE Remote FILE
  7.         -g Get file
  8.         -p Put file
  9.         -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命令,可以得到以下帮助信息:

  1. BusyBox v1.17.(2010-12-22 10:59:18 CST) multi-call binary.

  2. Usage: ftpget [OPTIONS] HOST [LOCAL_FILE] REMOTE_FILE

  3. Retrieve a remote file via FTP

  4. Options:
  5.         -c,--continue Continue previous transfer
  6.         -v,--verbose Verbose
  7.         -u,--username Username
  8.         -p,--password Password
  9.         -P,--port Port number

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

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

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

猜你喜欢

转载自blog.csdn.net/u010990478/article/details/74913874
今日推荐