Skip noisy folders like node_modules or dist.
Section: Recursive Search
Exclude directories
bash
bash
grep -R --exclude-dir=node_modules 'axios' .Explanation
Excluding generated or vendored folders makes searches much faster.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Recursive Search
Recursive search with line numbers
Show file names and line numbers for matches.
Only search matching file names
Restrict recursive search to certain extensions.
Use extended regex
Enable `+`, `?`, and alternation without heavy escaping.