常用保存

查找文件:
find / -name test
find / -name "*test*"
grep 'test' c* aa bb         已c开头或aa和bb文件中包含test行
grep -r test /     根目录及子目录下所有包含test行的文件
grep test /      根目录下所有包含test行的文件
grep -w <pattern> <file>  匹配整个单词

posted @ 2018-02-04 14:22  bad_boy_f  阅读(134)  评论(0编辑  收藏  举报