grep 'word' filename grep -rnw '/path/to/somewhere/' -e 'text_to_find' -r or -R is recursive, -n is line number, and -w stands for match the whole word. https://stackoverflow.com/questions/16956810/how-do-i-find-all-files-containing-specific-text-on-linux