linux commands how to search for a text recursively code example Example: command line how to find all files that have a string grep -rnw '/path/to/somewhere/' -e 'pattern'