πŸ’‘
cheatsheets
  • πŸ‘‹Introduction
  • πŸ‹Docker
  • πŸ’ͺBrute Force
    • Hydra
  • πŸ—οΈCryptography
    • Generate pub/priv key
  • 🐧Linux
    • Curl
    • Debian
    • Fail2Ban
    • Find
    • Grep & Co
    • Netstat
    • ps
    • pdfcrack
    • qpdf
    • Rsync
    • Scp
    • Tmux
    • Ufw
    • Vim
  • 🐍Python
    • Files Handling
    • Web
  • πŸ‘οΈRecon
    • Cewl
    • DNS
    • Host Discovery
    • nmap
    • Web
  • πŸ”Splunk
    • tstats
  • πŸ“‘SSH
  • πŸ•ΈοΈWeb
    • Gobuster
    • OWASP
    • SQLi
      • Resources
  • ⛏️Resources
    • πŸ“‘Cheatsheets
    • πŸ‹οΈTrainings
Powered by GitBook
On this page
  1. Linux

Grep & Co

# Return list of files where "pattern" is find from /path/to/search/ directory
grep -Rl "pattern" /path/to/search/

# Filtering
| grep pattern -B 5 -A 10            # 5 Lines Before and 10 After pattern                        
| grep -v pattern_I_dont_want        # Use " " and skip character '\' if it doesn't work
| grep -i pattern                    # Non case sensitive
PreviousFindNextNetstat

Last updated 1 year ago

🐧