In Centos7 find a file, directory, content

1, Find File

find / -name ‘filename’

2, find the directory

find / -name ‘path’ -type d

3. Find content

the Find |. xargs grep -ri 'Content'
// the Find |. -RIL xargs grep 'Content' only displays the file name

Reference documents:
https://blog.csdn.net/hhhzua/article/details/80395352

Guess you like

Origin www.cnblogs.com/telwanggs/p/11546758.html