rg

ripgrep: fast recursive search

low risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

A fast grep replacement that searches recursively, with sensible defaults.

Common flags
FlagMeaning
-iCase-insensitive
-nLine numbers (default in a terminal)
-gGlob include/exclude
--hidden --hiddenInclude hidden files
-uuAlso ignore .gitignore and binary filters
Examples
rg "TODO" srcSearch a directory · explain & risk-check →
rg -g "*.go" -i handlerOnly Go files, case-insensitive · explain & risk-check →
Related
grep find
Open the full explainer →More in Text Processing

Reference text is hand-written and may be incomplete — check man rg for your version. Test destructive commands on a non-production system first.