linux command line find file containing text code example Example: find text in folder grep -rnw '/path/to/somewhere/' -e 'pattern'