Find files by name
Searches the folder and all subfolders for matching names.
find -name ""Find files by name or size, search inside files, create and extract archives, sync folders with rsync, verify checksums and batch-rename files from the terminal.
17 commands
Searches the folder and all subfolders for matching names.
find -name ""Lists files bigger than the size you choose, with their sizes.
find -type f -size + -exec ls -lh {} \; 2>/dev/nullEvery line containing the text, with file names and line numbers.
grep -rn "" Much faster than grep and skips .gitignore’d files. Install with brew install ripgrep.
rg ""Creates a compressed archive.
tar -czvf Unpacks the archive into the current folder.
tar -xzvf Creates a .zip that opens anywhere.
zip -r Extracts the zip into the given folder.
unzip -d Copies only what changed and preserves timestamps and permissions. The trailing slash on the source means "its contents".
rsync -avh --progress Prints new lines as they’re written. Ctrl+C to stop.
tail -f Number of lines (add -w for words).
wc -l Verify downloads against the published hash. On Linux you can also use sha256sum.
shasum -a 256 Makes a link that points to the original file or folder.
ln -s Visual folder structure, limited to N levels. Install with brew install tree.
tree -L Renames every .txt in the folder to .md.
for f in *.; do mv -- "$f" "${f%.}."; doneRenames files in place. Try it on a copy first.
Removes macOS folder metadata files from the current folder down.
find . -name ".DS_Store" -type f -deleteFrees up gigabytes from old projects. Reinstall later with npm install.
find . -name "node_modules" -type d -prune -exec rm -rf {} +Deletes folders permanently. Run it from your projects folder, not from / or ~.
Every command copies as plain, clean text: no curly quotes, no long dashes, no invisible characters.