pycod
很多人在说我们讲故事吹NB 但是我们吹过的NB ,正在一一变为现实 !!!!!

1、查找文件

find / -name 'filename'
  • 1

2、查找目录

find / -name 'path' -type d
  • 1

3、查找内容

# find .| xargs grep -ri 'fmtmsg'

 

文件内容搜索

[root@localhost runtest]# grep fmtmsg *
ltplite:fmtmsg01 fmtmsg01
stress.part3:fmtmsg01 fmtmsg01
syscalls:fmtmsg01 fmtmsg01
[root@localhost runtest]#

posted on 2020-05-08 17:18  pycod  阅读(327)  评论(0编辑  收藏  举报