centos查找文件\目录\内容命令

1、查找文件

find / -name 'filename'
1
2、查找目录

find / -name 'path' -type d
1
3、查找内容

find . | xargs grep -ri 'content'
//find . | xargs grep -ril 'content' 只显示文件名称
---------------------
作者:懒驴打滚
来源:CSDN
原文:https://blog.csdn.net/hhhzua/article/details/80395352
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自www.cnblogs.com/leelice/p/10906188.html