免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7978 | 回复: 1

BusyBox中的FTP和TFTP的使用 [复制链接]

论坛徽章:
0
发表于 2011-12-20 17:33 |显示全部楼层
版本:BusyBox-1.17.4
编译过程选在FTP和TFTP相关选项。

TFTP
在终端中输入tftp命令,可以得到以下帮助信息:
BusyBox v1.17.4 (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.4 (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 -P ****** 172.19.6.88 asc.bin

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

论坛徽章:
0
发表于 2012-02-05 17:13 |显示全部楼层
留个脚印,收藏
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP