Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Grep

grep -rnw '/path/to/somewhere/' -e 'pattern'
  • -r recursive
  • -n line number
  • -w match the whole word.
  • -l list the file name
  • -e what follows is the PATTERN to search for.
  • -A <number> print the matching line, then this many lines afterwards.

References

Find all files containing a specific text (string) on Linux - Stack Overflow

Last Modified • Sunday, June 14, 2026. 5:02 pm UTC+00:00 • Commit: 3aedc3f