linux 命令相关
通过man查询可知:
u 代表用户.
g 代表用户组.
o 代表其他.
a 代表所有
这意味着chmod u+x somefile 只授予这个文件的所属者执行的权限
而 chmod +x somefile 和 chmod a+x somefile 是一样的
举例:
cd /tmp
tftp -g -r sample_audio 192.168.1.100
chmod +x ./sample_audio
./sample_audio 0 48000
====================================================
Transfer a file from/to tftp server
-l FILE Local FILE 本地文件
-r FILE Remote FILE 远程文件
-g Get file 获取文件
-p Put file 送出文件
根据tftp的用法,都是在设备上进行操作
从本地上传一个文件到设备的用法:
tftp -g -r filename IP
eg: tftp -g -r ath.ko 192.168.1.155
从设备上取出文件到本地的用法:
tftp -l -p filename IP
eg: tftp -l -p ath.ko 192.168.1.155
====================================================