Skip to content

Instantly share code, notes, and snippets.

@inouire
Last active January 6, 2026 15:25
Show Gist options
  • Select an option

  • Save inouire/293228c44d5b14840c2f016c8a48beb3 to your computer and use it in GitHub Desktop.

Select an option

Save inouire/293228c44d5b14840c2f016c8a48beb3 to your computer and use it in GitHub Desktop.
Search for a string in the whole filesystem

With regular grep:

sudo grep -RI --exclude-dir={proc,sys,dev,run,tmp} "_PRD" /

or if ripgrep is installed:

sudo rg "_PRD" /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment