how to find a word in a file in linux code example
Example 1: linux search for line in file
grep -R "keyword" /directory/
Example 2: linux find from file content
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 3: how to find a word in files linux
# this will search all subdirectories for text (no case sensitivity)
grep -inR "your text" .