Centos7 中查找文件、目录、内容

1、查找文件

find / -name ‘filename’

2、查找目录

find / -name ‘path’ -type d

3、查找内容

find . | xargs grep -ri ‘content’
//find . | xargs grep -ril ‘content’ 只显示文件名称

参考文档:
https://blog.csdn.net/hhhzua/article/details/80395352

原文地址:https://www.cnblogs.com/telwanggs/p/11546758.html