linux 常用命令技巧
生活随笔
收集整理的這篇文章主要介紹了
linux 常用命令技巧
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
這里將記錄各種linux命令的使用技巧,供平時參考
find:
查找文件并且拷貝到某個目錄
cp $(find . -not -type d -printf "%P ") ../filecodes_old/
其實,
假定tmp/下面有dir1,要把dir1_new里面的文件拷貝到dir1下面,相同則覆蓋??梢?#xff0c;把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
待續....
轉載于:https://blog.51cto.com/jiangjqian/423593
總結
以上是生活随笔為你收集整理的linux 常用命令技巧的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 环形缓冲区ringbuffer
- 下一篇: 诺基亚5800WIFI设置教程