Find all files containing specific text on Linux? Home » Find all files containing specific text on Linux? Posted on May 23, 2022 AdminLatest In How-To Geek / Linux 202 Use the following code to Find all files containing specific text on Linux? grep -rnw ‘/path/to/somewhere/’ -e ‘pattern’