Skip to content
Commitpedia
Log in Join & edit

ripgrep (rg): fast recursive search

ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern, skipping ignored, hidden and binary files by default.

Drafted with AI from official documentation. Scripts were run in a test environment and repository links verified. Awaiting a human check. Did it work for you? Last edited Outdated?

Edit history of ripgrep (rg): fast recursive search: 1 recorded edit
Edit history · 1 edit
Type
Repo
Edits
1
Editors
1
First issued
15 Oct 2026
Last edit
15 Oct 2026
Source
BurntSushi/ripgrep

BurntSushi/ripgrep

Stars
69.1k
Forks
5.5k
Language
Rust
Licence
Unlicense
Last push
4 Aug 2026

On GitHub: ripgrep recursively searches directories for a regex pattern while respecting your gitignore

Open on GitHub

ripgrep, run as rg, does the job of grep -r but with defaults that suit code projects: it respects your .gitignore rules, skips hidden files and folders and binary files, and shows results with file names, line numbers and color. It is written in Rust and is known for being very fast on large source trees.

Everyday use is simple: rg TODO searches the current folder, rg -i 'connection refused' logs/ ignores case, rg -t py import limits the search to Python files, and rg -l pattern prints only matching file names. Use --hidden or --no-ignore (or -uuu) when you need it to search everything, and --fixed-strings (-F) when the pattern contains regex characters you want taken literally.

It is available through most package managers, for example brew install ripgrep or apt install ripgrep, and many editors use it under the hood for their project-wide search.

Did this work for you?

No votes yet. Be the first.

If it did not work, the report form below tells the editors what went wrong.

See also

  • 0057 Shell cheat sheet: everyday commands A quick reference for moving around, managing files, viewing and searching text, checking processes and disk space in bash and zsh, with… Beginner · Cheat sheet · Linux, macOS Article Basics · Command-line tools 15 Oct 2026
  • 0076 jq recipes: 23 one-liners for JSON on the command line A runnable collection of jq filters for everyday JSON work: pick fields, filter with select, reshape, sort, count, group, pass shell variables,… Intermediate · Cheat sheet · Linux, macOS, Windows Script Command-line tools · jq & JSON on the command line 15 Oct 2026
  • 0392 Install Visual Studio Code on Linux, macOS and Windows Install VS Code from Microsoft's packages, Homebrew or winget, get the code command working in the terminal, and add the extensions you… Beginner · Step by step · Linux, macOS, Windows Article Command-line tools · Installing languages & tools 15 Oct 2026

History

Every saved edit is kept. The plot on the sleeve draws one line per edit. Open any edit to see exactly what changed.

  1. Dominik +868 chars

Report a problem

Something wrong, unsafe or copied? Tell the editors.
What is wrong?