how to find string in directory linux command code example Example: find text in folder grep -rnw '/path/to/somewhere/' -e 'pattern'