How to grep recursively in a directory
$ grep -r [search_string] .
- Command
- grep
- Description
- Search for a text string in all files within the current directory and subdirectories. Usage: grep -r [string] .
- Deep Dive
- -r means recursive. Often combined with -n (line number) as `grep -rn [string] .`.