I am looking for a specific phrase in CentOS and I am not sure where and which file or even directory that has the file is. How can I do a complete recursive search on a phrase. Thanks
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
If you don't know which directory, use / - but be prepared for it to take a long time. |
|||||||||||||||
|
|
You can use this one liner to get a list of all files in this folder and sub folders, containing the phrase "The phrase I am looking for".
|
|||||||||||
|
|
Go to the uppermost level directory that you dare searching and then type:
I don't really use grep anymore because of |
|||
|