New: Try Voli The Bear, Fast package manager (and not only) for Windows
Reference

Cheat Sheet

The commands you keep forgetting, with a one-line description and a real example you can copy - 629 across 38 tools. Pick a tool in the sidebar, or search across all of them.

grep & find

Search inside files with grep, locate files with find - the daily pair.
CommandWhat it doesExample
grep -rSearch all files under a folder, recursively.grep -r "TODO" src/
grep -riRecursive and case-insensitive.grep -ri "timeout" .
grep -rnShow file and line number for each match.grep -rn "api_key" config/
grep -rlList only the file names that match.grep -rl "deprecated" src/
grep -vInvert: show lines that do NOT match.grep -v "DEBUG" app.log
grep -cCount matching lines per file.grep -c "ERROR" app.log
grep -EExtended regex: +, ?, | without backslashes.grep -E "error|warn" app.log
grep -wMatch whole words only.grep -rw "cat" notes/
grep -A / -B / -CShow lines After, Before, or around a match.grep -C 3 "panic" app.log
grep --includeRestrict the recursive search by filename pattern.grep -rn "useState" --include="*.tsx" src/
grep in a pipeFilter the output of any command.ps aux | grep node
rg (ripgrep)Faster modern grep - recursive by default, respects .gitignore.rg "TODO" -t js
find by nameLocate files by glob (quote the pattern).find . -name "*.test.js"
find -inameSame, case-insensitive.find . -iname "readme*"
find -typeOnly files (f) or only directories (d).find . -type d -name "node_modules"
find -mtimeBy modification age in days (-1 = last 24h).find /var/log -mtime -1
find -sizeBy file size (+100M = larger than 100 MB).find . -size +100M
find -execRun a command on every result ({} is the file).find . -name "*.log" -exec gzip {} \;
find -deleteDelete what matches - run WITHOUT -delete first to preview.find . -name "*.tmp" -delete
find + xargsFeed results to another command in batches.find . -name "*.py" | xargs grep -l "import requests"
find -maxdepthLimit how deep the search goes.find . -maxdepth 2 -name "package.json"