grep -rnw 'directory' -e "pattern"This helps me to find a string in an entire directory:grep -Hrn 'string' directory