Categories
Linux

How to find files containing specific text on Linux

To search for files containing specific text on linux, you can use the ‘grep‘ command:

grep -iRl “Text to search for” ./

./: Current directory
-i: Ignores case to match.
-R: Search directories resursively and follow all symlinks.
-l: Displays list of filenames.

Leave a Reply

Your email address will not be published. Required fields are marked *