grep word in folder code example Example 1: grep in folder grep -nr 'yourString*' . Example 2: grep folder for text grep -rl "string" /path