linux terminal how to find all files containing a string code example Example: linux find from file content grep -rnw '/path/to/somewhere/' -e 'pattern'