[root@cheat ~]#keyboard_backspaceBack

grep

Search for text patterns recursively in files

Primary Syntax
$ grep -r 'pattern' /path
#

Example Usage

grep -r 'error' /var/log/
#

Quick Tips

Use man grep to read the full manual

Add --help flag for quick options reference

Combine with | less for paginated output

Submitted by: admin

Added: 2/9/2026

arrow_back