Show file names and line numbers for matches.
Section: Recursive Search
Recursive search with line numbers
bash
bash
grep -Rn 'TODO' src/Explanation
One of the most useful codebase-search commands.
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