Home  »  CodeProgrammingSnippetsTechnologyTools   »   How do I Find all Files Containing Specific Text on Linux?

How do I Find all Files Containing Specific Text on Linux?

Posted: March 16, 2022 | by Site Host

Use this to find all files containing specific text on Linux.

$ grep -lrnw '/var/www/html' -e 'cool text'

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.

Share it!

See also  How to Programmatically Logout in WordPress