1. 拷贝文件
cp file ../ file1/ -ar //拷贝文件
参数:
-a, --archive
same as -dR --preserve=all
-R, -r, --recursive
copy directories recursively
-f, --force
if an existing destination file cannot be opened, remove it and try again (this option is ignored when the -n option is also used)
拷贝除file下的test.txt外的其他文件
cp `ls /home/file/ | grep -v test.txt | xargs` /home/file2
拷贝除file的其他文件
cp `ls /home/file1/ | grep -v file | xargs` /home/file2 -ar
拷贝远端数据到当前
scp 192.168.0.1:/home/root/file/text.txt .
拷贝当前数据到远端
scp text.txt 192.168.0.1:/home/root/file/
2. 查看执行程序使用的库文件
arm-linux-readelf -d xxx(目标文件/命令)