这里将记录各种linux命令的使用技巧,供平时参考

find:
查找文件并且拷贝到某个目录
cp $(find . -not -type d -printf "%P ") ../filecodes_old/

其实,
假定tmp/下面有dir1,要把dir1_new里面的文件拷贝到dir1下面,相同则覆盖。可以,把dir1_new 命名为dir1,然后
cp -ar dir1/ tmp/就可以了

也可以通过tar命令来做类似的事情。

ifconfig eth0 192.168.2.5 netmask 255.255.255.0
tail -f : can be used to monitor a file

待续....