search for words in file linux code example Example: file search linux by text grep -rnw '/path/to/somewhere/' -e 'pattern'