Linux: Find All Files Containing a Specific String

The command is as follows:

grep -ri "string" .

or

find . | xargs grep -ri "string" -l

Leave a Comment

Your email address will not be published.