Reference
CLI Command Cheat Sheet
A searchable rundown of shell commands you actually reach for —
git, grep, curl, ssh,
docker, find, awk,
sed, package managers, archive tools, the lot —
with canonical syntax, the flags you use 90% of the time, a couple of
examples, the gotcha that bites everyone, and per-row OS badges so
you know whether it runs on Linux, macOS, Windows, or in your Termux
shell.
How to use: pick a category tab or filter live by typing into the search box (matches across name, description, syntax, flags, and examples). Tap any worked example to see a plain-English explanation of what it does, or tap any highlighted term inside an example (or any abbreviated term in a cell) to see what it stands for. The Danger column flags destructive commands at a glance and Modern alt points to a newer replacement where one exists. The command column stays pinned as you scroll horizontally.
OS Compatibility Legend
Each row carries one or more badges showing where the command runs. Combine 🛡 root with the OS badges when the command requires elevated privileges.
- Linux
- macOS
- Windows
- Cross-platform
- Requires root / sudo
- Android (Termux)
Danger Level
The Danger column rates how much damage a careless invocation can do.
- ✓ safe Read-only or trivially reversible
- ▲ caution Can overwrite / modify state
- ⚠ destructive Irreversible data loss possible
Interactive Tools
Compose tricky invocations interactively. All four widgets run locally in your browser — nothing leaves the page. Copy the composed command from the output block once you're happy.
Shell & CLI Glossary 32 terms
Click any term to see a beginner-friendly explanation. Cross-references inside an explanation open in a stacked modal — Escape closes them one at a time.
| Command | OS / Appliance | Danger | Description | Syntax | Flags / Options | Examples | Recipes / Combos | Gotchas | Modern alt | See also | Docs |
|---|---|---|---|---|---|---|---|---|---|---|---|
ls
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | List directory contents. | ls [-l] [-a] [-h] [-S|-t] [-r] [<path>...] |
7
flags
|
|
2
recipes
|
macOS ships BSD |
eza / lsd — colourful, git-aware ls with icons
|
cd, tree, stat
|
|
cd
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Change the current shell directory. | cd [<dir>|-|~] |
3
flags
|
|
2
recipes
|
|
— |
pwd, pushd
|
|
pwd
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Print the current working directory. | pwd [-L|-P] |
2 flags
|
|
2
recipes
|
— | — |
cd, realpath
|
|
mkdir
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Create one or more directories. | mkdir [-p] [-m <mode>] <dir>... |
2 flags
|
|
2
recipes
|
— | — |
rmdir, chmod
|
|
rmdir
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Remove empty directories. | rmdir [-p] [-v] <dir>... |
2 flags
|
|
2
recipes
|
|
— |
rm, mkdir, find
|
|
rm
🐧🍎⚙️🤖
⚠ destructive |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
⚠ destructive | Remove files and directories. | rm [-r] [-f] [-i] <file>... |
4
flags
|
|
2
recipes
|
|
— |
mv, rmdir, trash
|
|
mv
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Move or rename files and directories. | mv [-i] [-n] [-v] <src>... <dst> |
3
flags
|
|
2
recipes
|
— | — |
cp, rename, rm
|
|
cp
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Copy files and directories. | cp [-r] [-i] [-p] [-v] <src>... <dst> |
5
flags
|
|
2
recipes
|
BSD |
— |
mv, rsync
|
|
touch
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Create empty files or update their access / modification timestamps. | touch [-c] [-d <date>] [-r <ref>] <file>... |
3
flags
|
|
2
recipes
|
— | — |
stat, mkdir
|
|
ln
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Create hard or symbolic links. | ln [-s] [-f] <target> <link_name> |
3
flags
|
|
2
recipes
|
Hard links share the same inode and break if the file system runs out of inodes; you can’t hard-link across file systems or to directories. Symbolic links can point at anything but become broken if the target moves. |
— |
readlink, realpath
|
|
stat
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Display detailed file metadata — inode, size, permissions, and all three timestamps. | stat [-c <fmt>|--format=<fmt>] <file>... |
2 flags
|
|
2
recipes
|
Format strings differ between GNU stat (Linux: |
— |
ls, file
|
|
file
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Identify a file's type by its content (magic numbers), not its extension. | file [-b] [-i] <path>... |
2 flags
|
|
2
recipes
|
— | — |
stat
|
|
tree
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Show a directory hierarchy as an ASCII tree. | tree [-L <depth>] [-a] [-d] [-I <pattern>] [<path>] |
4
flags
|
|
2
recipes
|
Not installed by default on macOS ( |
eza --tree — git-aware tree with icons and colour
|
ls, find
|
|
realpath
🐧⚙️🤖
✓ safe |
🐧 Linux⚙️ Cross-platform🤖 Termux
|
✓ safe | Resolve a path to its absolute, symlink-free canonical form. | realpath [-e] [-s] <path> |
2 flags
|
|
2
recipes
|
Not available on stock macOS — install via |
— |
readlink, pwd
|
|
dirname
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Strip the last path component, returning the directory portion of a path. | dirname <path>... |
1 flag
|
|
2
recipes
|
— | — |
basename, realpath, pwd
|
|
basename
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Strip the directory portion (and optionally a suffix) from a path, leaving only the filename. | basename <path> [<suffix>] |
2 flags
|
|
2
recipes
|
Passing multiple paths to POSIX |
— |
dirname, realpath
|
|
grep
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Search text for lines matching a pattern. | grep [-i] [-r] [-n] [-E|-F|-P] [-v] <pattern> [<file>...] |
11
flags
|
|
2
recipes
|
macOS ships BSD grep, which lacks |
Prefer rg (ripgrep) for interactive use — faster, .gitignore-aware, and Unicode-correct by default.
|
awk, sed, find, ripgrep, ↳ regex
|
|
find
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Walk a directory tree and act on files matching tests. | find <path>... [tests] [actions] |
8
flags
|
|
2
recipes
|
|
Consider fd for interactive use — simpler syntax, .gitignore-aware, and colored output by default.
|
xargs, grep, fd, ↳ find
|
|
awk
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Pattern-action language for column-oriented text processing. | awk [-F <sep>] '<pattern> { <action> }' [<file>...] |
3
flags
|
|
2
recipes
|
|
— |
sed, cut, grep
|
|
sed
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Stream editor — apply scripted edits to a stream of text. | sed [-i[<ext>]] [-E] '<script>' [<file>...] |
4
flags
|
|
2
recipes
|
|
— |
awk, tr, grep, ↳ regex
|
|
cut
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Extract specific bytes, characters, or fields from each line. | cut [-d <delim>] -f <fields> [<file>...] |
3
flags
|
|
2
recipes
|
— | — |
awk, paste
|
|
sort
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Sort lines of text. | sort [-n] [-r] [-u] [-k <field>] [-t <sep>] [<file>...] |
6
flags
|
|
2
recipes
|
— | — |
uniq, shuf
|
|
uniq
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Filter adjacent duplicate lines. | uniq [-c] [-d] [-u] [<file>] |
3
flags
|
|
2
recipes
|
|
— |
sort
|
|
head
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Print the first N lines (or bytes) of a stream. | head [-n <count>|-c <bytes>] [<file>...] |
2 flags
|
|
2
recipes
|
— | — |
tail, less
|
|
tail
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Print the last N lines, optionally following a growing file. | tail [-n <count>] [-f] [<file>...] |
3
flags
|
|
2
recipes
|
— | — |
head, less
|
|
less
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Page through text interactively (forward and backward). | less [+<line>] [-N] [-S] [-R] [<file>] |
4
flags
|
|
2
recipes
|
Inside less: |
— |
more, tail, head
|
|
cat
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Concatenate files and print to stdout. | cat [-n] [-A] [<file>...] |
2 flags
|
|
2
recipes
|
“Useless use of cat” — |
bat adds syntax highlighting, line numbers, and git diff markers — a drop-in viewer replacement for interactive use.
|
tac, head, tail
|
|
tee
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Read stdin, write to stdout AND to one or more files. | tee [-a] <file>... |
1 flag
|
|
2
recipes
|
The |
— |
cat, xargs
|
|
xargs
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Build and execute commands from stdin. | xargs [-0] [-n <max>] [-I <repl>] [-P <jobs>] <cmd> |
4
flags
|
|
2
recipes
|
Without |
— |
find, parallel
|
|
jq
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Filter, transform, and query JSON from the command line. | jq [-r] [-c] '<filter>' [<file>] |
4
flags
|
|
2
recipes
|
Not installed by default — |
— |
awk, yq
|
|
wc
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Count lines, words, characters, or bytes. | wc [-l] [-w] [-c] [-m] [<file>...] |
4
flags
|
|
2
recipes
|
— | — |
awk
|
|
tr
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Translate or delete characters from stdin. | tr [-d] [-s] [-c] '<set1>' ['<set2>'] |
3
flags
|
|
2
recipes
|
— | — |
sed, awk
|
|
diff
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Compare files line by line. | diff [-u] [-r] [-i] [-w] <file1> <file2> |
6
flags
|
|
2
recipes
|
— | — |
patch, git diff, comm
|
|
patch
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Apply a diff (patch file) to update one or more files. | patch [-p<n>] [-R] [--dry-run] [-i <patchfile>] |
4
flags
|
|
2
recipes
|
— | — |
diff, git apply
|
|
tac
🐧⚙️🤖
✓ safe |
🐧 Linux⚙️ Cross-platform🤖 Termux
|
✓ safe | Print lines in reverse order (cat backwards). | tac [<file>...] |
2 flags
|
|
2
recipes
|
Not bundled with macOS by default — |
— |
cat, rev
|
|
paste
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Merge corresponding lines of files side by side. | paste [-d <delim>] [-s] <file>... |
2 flags
|
|
2
recipes
|
— | — |
cut, join
|
|
rg
🐧🍎⚙️
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
✓ safe | Fast recursive search respecting .gitignore — a modern grep replacement. | rg [options] <pattern> [<path>...] |
11
flags
|
|
2
recipes
|
Not installed by default — |
— |
grep, find, fd, ↳ regex
|
|
comm
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Compare two sorted files line by line, showing lines unique to each or common to both. | comm [-123] <file1> <file2> |
3
flags
|
|
2
recipes
|
Both inputs must be sorted — |
— |
diff, sort, uniq
|
|
column
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Format input into aligned columns or a table — turns tab/space-separated data into readable output. | column [-t] [-s <sep>] [-o <out-sep>] [-N <names>] [<file>...] |
5
flags
|
|
2
recipes
|
The |
— |
awk, paste, cut
|
|
nl
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Number lines of files, with control over which lines are numbered and the format used. | nl [-b <style>] [-n <format>] [-w <width>] [-v <start>] [<file>...] |
7
flags
|
|
2
recipes
|
|
— |
cat, head, awk
|
|
ps
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Snapshot the current process list. | ps [aux | -ef] [-o <fmt>] |
3
flags
|
|
1 recipe |
|
Use procs for a colourised, human-friendly alternative (cargo install procs).
|
top, pgrep, htop
|
|
top
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Live, sortable view of running processes. | top [-d <delay>] [-n <iters>] [-o <field>] [-u <user>] |
4
flags
|
|
1 recipe |
Linux |
Prefer htop or btop for colour, mouse support, and tree view.
|
htop, ps, iotop
|
|
htop
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Interactive process viewer with colour, mouse support, and tree mode. | htop [-d <ds>] [-u <user>] [-p <pid>...] |
3
flags
|
|
1 recipe |
Not installed by default — |
Use btop for an even richer resource overview including disk and network graphs.
|
top, btop
|
|
kill
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Send a signal to one or more processes (default: SIGTERM). | kill [-<signal>|-l] <pid>... |
4
flags
|
|
2
recipes
|
Reach for |
— |
pkill, killall, pgrep
|
|
pkill
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Kill processes by name pattern instead of PID. | pkill [-<signal>] [-f] [-u <user>] <pattern> |
3
flags
|
|
1 recipe |
— | — |
kill, pgrep, killall
|
|
pgrep
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | List PIDs of processes matching a name pattern. | pgrep [-f] [-u <user>] [-a] <pattern> |
4
flags
|
|
1 recipe |
— | — |
pkill, ps
|
|
jobs
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | List the current shell's background and stopped jobs. | jobs [-l] [-p] |
2 flags
|
|
1 recipe |
Jobs are shell-local — they disappear when the shell exits unless you use |
— |
bg, fg, nohup, disown
|
|
nohup
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Run a command immune to hangups (so it survives shell exit). | nohup <cmd> [args...] [&] |
2 flags
|
|
1 recipe |
Output goes to |
— |
disown, tmux, screen
|
|
lsof
🐧🍎⚙️
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
✓ safe | List open files (including network sockets) and their owning processes. | lsof [-i [<host>:<port>]] [-p <pid>] [-u <user>] |
4
flags
|
|
2
recipes
|
Almost always needs |
— |
ss, netstat, fuser
|
|
time
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Run a command and report how long it took. | time <cmd> [args...] |
2 flags
|
|
1 recipe |
|
— |
hyperfine
|
|
killall
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Kill all processes with a given name. | killall [-<signal>] [-i] [-u <user>] <name>... |
4
flags
|
|
1 recipe |
BSD killall (macOS) and GNU killall (Linux) differ — macOS killall matches the exact command name only and lacks |
— |
kill, pkill
|
|
bg
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Resume a stopped job in the background. | bg [%<jobspec>] |
3
flags
|
|
1 recipe |
— | — |
fg, jobs, nohup
|
|
fg
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Bring a backgrounded or stopped job to the foreground. | fg [%<jobspec>] |
3
flags
|
|
1 recipe |
— | — |
bg, jobs
|
|
strace
🐧🛡
▲ caution |
🐧 Linux🛡 root
|
▲ caution | Trace system calls and signals a process is making. | strace [-f] [-e <expr>] [-p <pid>] [-o <file>] <cmd> |
6
flags
|
|
1 recipe |
Linux-only. macOS uses |
— |
ltrace, dtruss, perf
|
|
tmux
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Terminal multiplexer — split panes, persistent sessions over ssh. | tmux [new|attach|ls|kill-session] [-t <name>] |
7
flags
|
|
1 recipe |
Configuration goes in |
— |
screen, mosh
|
|
screen
🐧🍎⚙️
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
✓ safe | Older terminal multiplexer — pre-installed on many minimal systems. | screen [-S <name>] [-r <name>] [-ls] |
5
flags
|
|
1 recipe |
— | — |
tmux
|
|
timeout
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Run a command and kill it if it exceeds a time limit. | timeout [-s <signal>] [-k <kill-after>] <duration> <cmd> [args...] |
4
flags
|
|
1 recipe |
|
— |
watch, nohup
|
|
watch
🐧🍎⚙️
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
✓ safe | Re-run a command at regular intervals and show its output full-screen. | watch [-n <secs>] [-d] [-t] <cmd> |
5
flags
|
|
2
recipes
|
|
— |
timeout, top, entr
|
|
disown
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Remove a job from the shell's job table so it keeps running after the shell exits. | disown [%<jobspec>...] [-h] [-ar] |
4
flags
|
|
1 recipe |
Unlike |
— |
nohup, jobs, bg
|
|
pstree
🐧🍎⚙️
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
✓ safe | Display running processes as a tree showing parent–child relationships. | pstree [-p] [-u] [-a] [<pid>|<user>] |
5
flags
|
|
1 recipe |
Install via |
— |
ps, htop, procs
|
|
nice
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Launch a command with an adjusted scheduling priority. | nice [-n <adj>] <cmd> [args...] |
1 flag
|
|
1 recipe |
Only root can set a negative niceness (higher priority). Normal users can only raise niceness (lower priority) and cannot subsequently lower it again — use |
— |
renice, chrt, ionice
|
|
renice
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Change the scheduling priority of an already-running process. | renice -n <adj> [-p <pid>] [-u <user>] [-g <pgrp>] |
4
flags
|
|
1 recipe |
Only root can decrease niceness (raise priority). Non-root users can only increase niceness, and cannot undo it — plan the initial niceness at launch with |
— |
nice, ionice, chrt
|
|
curl
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Transfer data to / from URLs (HTTP, HTTPS, FTP, SFTP, and more). | curl [-X <method>] [-H "<header>"] [-d <data>] [-o <file>] [-L] [-sS] <url> |
12
flags
|
|
2
recipes
|
|
— |
wget, httpie, rsync, ↳ curl
|
|
wget
🐧⚙️🤖
▲ caution |
🐧 Linux⚙️ Cross-platform🤖 Termux
|
▲ caution | Non-interactive network downloader with resume and recursive mirroring support. | wget [-O <file>] [-c] [-r] [-N] [-q] <url> |
7
flags
|
|
1 recipe |
Not installed on macOS by default — |
— |
curl, aria2c
|
|
ping
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Send ICMP echo requests to a host and report round-trip time. | ping [-c <count>] [-i <interval>] [-W <timeout>] <host> |
4
flags
|
|
1 recipe |
Some networks block ICMP — “ping fails” doesn’t always mean the host is down. Sub-second |
— |
traceroute, mtr
|
|
traceroute
🐧🍎⚙️
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
✓ safe | Show the network path (hop by hop) to a host. | traceroute [-n] [-T] [-I] [-w <s>] <host> |
4
flags
|
|
1 recipe |
— | — |
mtr, ping
|
|
mtr
🐧🍎⚙️
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
✓ safe | Combined traceroute + ping with a live rolling display of per-hop loss and latency. | mtr [-r] [-c <count>] [-w] [-n] <host> |
4
flags
|
|
1 recipe |
— | — |
traceroute, ping
|
|
dig
🐧🍎⚙️
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
✓ safe | Detailed DNS lookups — the canonical DNS debugger with full control over query type and resolver. | dig [@<server>] <name> [<type>] [+short] [+trace] |
5
flags
|
|
2
recipes
|
— | — |
host, nslookup
|
|
host
🐧🍎⚙️
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
✓ safe | Simpler DNS lookup utility — terse output by default, good for quick checks. | host [-t <type>] [-a] <name> [<server>] |
2 flags
|
|
1 recipe |
— | — |
dig, nslookup
|
|
nslookup
🐧🍎🪟⚙️
✓ safe |
🐧 Linux🍎 macOS🪟 Windows⚙️ Cross-platform
|
✓ safe | Older interactive DNS query tool — still useful on Windows where dig is not bundled. | nslookup [-type=<type>] <name> [<server>] |
2 flags
|
|
1 recipe |
|
Prefer dig for scriptable output and more control over query options.
|
dig, host
|
|
ss
🐧
✓ safe |
🐧 Linux
|
✓ safe | Inspect sockets — listening ports, established connections, and per-socket stats. | ss [-l] [-t] [-u] [-n] [-p] [-a] |
7
flags
|
|
2
recipes
|
|
— |
netstat, lsof
|
|
netstat
🐧🍎🪟⚙️
✓ safe |
🐧 Linux🍎 macOS🪟 Windows⚙️ Cross-platform
|
✓ safe | List network connections, routing tables, and interface stats. | netstat [-l] [-t] [-u] [-n] [-p] [-r] |
5
flags
|
|
1 recipe |
Deprecated on modern Linux in favour of |
On Linux, prefer ss — it is faster, actively maintained, and reads kernel data directly.
|
ss, lsof, route
|
|
nmap
🐧🍎🪟⚙️🛡
▲ caution |
🐧 Linux🍎 macOS🪟 Windows⚙️ Cross-platform🛡 root
|
▲ caution | Port scanner and network discovery tool — detect open ports, services, and OS fingerprints. | nmap [-sS|-sT|-sU] [-p <ports>] [-A] [-Pn] <target> |
6
flags
|
|
1 recipe |
Only scan networks you own or have written permission to scan. Aggressive scans are noisy and may trigger IDS alerts. |
— |
ss, masscan
|
|
ip
🐧
▲ caution |
🐧 Linux
|
▲ caution | Show and manipulate routing, devices, addresses, and tunnels — the modern Linux networking Swiss army knife. | ip [<object>] [<command>] [<args>] |
5
flags
|
|
1 recipe |
Replaced the older |
Replaces ifconfig on Linux — prefer ip for scripting and modern distros.
|
ifconfig, ss
|
|
nc
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Netcat — read and write arbitrary TCP/UDP connections, the swiss-army knife of networking. | nc [-l] [-u] [-z] [-v] [-w <sec>] [<host>] <port> |
6
flags
|
|
2
recipes
|
Multiple incompatible implementations exist: GNU netcat ( |
— |
ncat, socat, ss
|
|
ifconfig
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Show and configure network interfaces — legacy Linux, still the default on macOS and BSD. | ifconfig [<iface>] [up|down] [<addr> netmask <mask>] |
3
flags
|
|
1 recipe |
Deprecated on modern Linux — use |
On Linux, prefer ip addr — ifconfig is legacy and may not be installed.
|
ip
|
|
ssh
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Open an authenticated, encrypted shell on a remote host. | ssh [-p <port>] [-i <key>] [-L|-R <fwd>] [<user>@]<host> [<cmd>] |
10
flags
|
|
2
recipes
|
Config goes in |
— |
scp, rsync, ssh-keygen, ssh-copy-id
|
|
scp
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Copy files over SSH — simple one-shot transfers between hosts. | scp [-r] [-P <port>] [-i <key>] <src>... [<user>@]<host>:<dst> |
5
flags
|
|
1 recipe |
OpenSSH 9+ switched |
For anything beyond trivial copies prefer rsync (delta transfer, resume, faster retries) or sftp.
|
rsync, sftp, ssh
|
|
rsync
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Fast incremental file sync (local or over SSH) with delta transfer. | rsync [-a] [-v] [--delete] [-z] [-P] <src>/ <dst>/ |
8
flags
|
|
2
recipes
|
Trailing |
— |
scp, tar, cp
|
|
ssh-keygen
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Generate, inspect, and manage SSH keypairs. | ssh-keygen [-t <algo>] [-b <bits>] [-f <path>] [-C <comment>] |
7
flags
|
|
1 recipe |
Default output path is |
— |
ssh, ssh-copy-id, ssh-add
|
|
ssh-copy-id
🐧🍎⚙️
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
✓ safe | Install your public key into a remote user's authorized_keys. | ssh-copy-id [-i <pubkey>] [-p <port>] [<user>@]<host> |
3
flags
|
|
1 recipe |
Not bundled with Windows OpenSSH — workaround: |
— |
ssh, ssh-keygen
|
|
sftp
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Interactive file transfer over SSH (FTP-like commands). | sftp [-P <port>] [-i <key>] [-b <batchfile>] [<user>@]<host> |
4
flags
|
|
1 recipe |
Once connected: |
— |
scp, rsync, sshfs
|
|
mosh
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Mobile shell — SSH-like but survives roaming, sleep, and packet loss. | mosh [--ssh="<ssh cmd>"] [-p <udp-port-range>] [<user>@]<host> |
2 flags
|
|
1 recipe |
Uses UDP on ports 60000–61000 — open those if your network blocks them. Needs |
— |
ssh, tmux
|
|
ssh-agent
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Authentication agent that holds decrypted private keys in memory for a session. | ssh-agent [-s] [-k] | eval "$(ssh-agent -s)" |
4
flags
|
|
1 recipe |
Each new shell needs the agent’s environment variables ( |
— |
ssh-add, ssh, ssh-keygen
|
|
ssh-add
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Add private keys to the running ssh-agent so you don't re-enter passphrases. | ssh-add [-t <lifetime>] [-d] [-l] [<keyfile>...] |
6
flags
|
|
1 recipe |
Requires a running |
— |
ssh-agent, ssh-keygen, ssh
|
|
git clone
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Copy a remote repository to your machine. | git clone [--depth <n>] [-b <branch>] <url> [<dir>] |
4
flags
|
|
1 recipe |
— | — |
git init, git remote
|
|
git init
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Initialise a new empty repository (or reinitialise an existing one). | git init [-b <branch>] [--bare] [<dir>] |
3
flags
|
|
1 recipe |
— | — |
git clone, git remote
|
|
git status
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Show working-tree and staging-area changes. | git status [-s] [-b] [--untracked-files=<mode>] |
3
flags
|
|
1 recipe |
— | — |
git diff, git log
|
|
git add
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Stage changes for the next commit. | git add [-A|-u|-p] [<pathspec>...] |
4
flags
|
|
1 recipe |
|
— |
git restore, git reset, git commit
|
|
git commit
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Record staged changes as a new commit. | git commit [-m "<msg>"] [-a] [--amend] [--no-edit] |
5
flags
|
|
1 recipe |
Never |
— |
git add, git push, git reset, git log
|
|
git push
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Upload local commits to a remote branch. | git push [-u] [--force-with-lease] [<remote>] [<branch>] |
5
flags
|
|
1 recipe |
Default |
For opening a PR immediately after pushing, use gh pr create — combines push + PR creation.
|
git pull, git fetch, gh pr
|
|
git pull
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Fetch from remote and merge / rebase into the current branch. | git pull [--rebase] [--ff-only] [<remote>] [<branch>] |
3
flags
|
|
1 recipe |
Set |
— |
git fetch, git merge, git rebase
|
|
git fetch
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Download remote commits without merging. | git fetch [--all] [--prune] [<remote>] [<refspec>] |
3
flags
|
|
1 recipe |
— | — |
git pull, git remote
|
|
git switch
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Change branches — the modern replacement for git checkout for branch operations. |
git switch [-c|-C] [-t <upstream>] <branch> |
4
flags
|
|
1 recipe |
— | — |
git restore, git checkout, git branch
|
|
git restore
⚙️
⚠ destructive |
⚙️ Cross-platform
|
⚠ destructive | Restore files in the working tree or staging area — replaces git checkout -- file. |
git restore [--staged] [--source=<commit>] <pathspec>... |
3
flags
|
|
1 recipe |
|
— |
git switch, git reset, git checkout
|
|
git branch
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | List, create, delete, or rename branches. | git branch [-a] [-d|-D <name>] [-m <new>] [<name> [<base>]] |
5
flags
|
|
1 recipe |
— | — |
git switch, git merge
|
|
git merge
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Merge another branch into the current one. | git merge [--no-ff] [--squash] [--abort] <branch> |
4
flags
|
|
1 recipe |
— | — |
git rebase, git pull
|
|
git rebase
⚙️
⚠ destructive |
⚙️ Cross-platform
|
⚠ destructive | Replay commits onto a different base — rewrites history. | git rebase [-i] [--onto <newbase>] [--continue|--abort] <upstream> |
5
flags
|
|
1 recipe |
Never rebase commits that have been pushed to a shared branch. Rebasing rewrites SHAs, so anyone with the old SHAs will be on a diverged history. After a rebase you must |
— |
git merge, git cherry-pick, git reflog
|
|
git stash
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Temporarily shelve working-tree changes. | git stash [push -m "<msg>"|pop|list|drop|apply] |
6
flags
|
|
1 recipe |
Stashes are local-only — they never push or sync. Don’t treat the stash as long-term storage; commit to a wip branch if you’ll be gone for more than a day. |
— |
git commit, git restore, git switch
|
|
git log
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Show commit history. | git log [--oneline] [--graph] [-<n>] [--author=<who>] [<path>...] |
7
flags
|
|
1 recipe |
— | — |
git show, git diff, git blame
|
|
git diff
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Show changes between commits, branches, working tree, or staging. | git diff [--staged] [<commit>[..<commit>]] [-- <path>...] |
4
flags
|
|
1 recipe |
— | — |
git log, git show
|
|
git reset
⚙️
⚠ destructive |
⚙️ Cross-platform
|
⚠ destructive | Move HEAD (and optionally the index / working tree) to a different commit. | git reset [--soft|--mixed|--hard] [<commit>] |
3
flags
|
|
1 recipe |
|
— |
git restore, git revert, git reflog
|
|
git remote
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Manage the set of configured remote repositories. | git remote [-v | add <name> <url> | set-url <name> <url> | remove <name>] |
4
flags
|
|
1 recipe |
— | — |
git fetch, git push
|
|
git tag
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Create, list, or delete lightweight / annotated tags. | git tag [-a <name> -m "<msg>"] [-d <name>] [-l <glob>] |
4
flags
|
|
1 recipe |
— | — |
git push, git describe
|
|
git cherry-pick
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Apply specific commits from another branch onto the current one. | git cherry-pick [-x] [-n] [--continue|--abort] <commit>... |
4
flags
|
|
1 recipe |
— | — |
git rebase, git revert
|
|
git revert
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Create a new commit that undoes the changes from a previous commit. | git revert [--no-commit] [--continue|--abort] <commit>... |
3
flags
|
|
1 recipe |
|
— |
git reset, git cherry-pick, git reflog
|
|
git reflog
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Show the local history of HEAD movements — the 'undo' database. | git reflog [show] [<ref>] [-<n>] |
3
flags
|
|
1 recipe |
The reflog is your safety net for any operation that rewrites history ( |
— |
git reset, git rebase
|
|
git show
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Show one commit (or other object) — message, diff, metadata. | git show [--stat] [--name-only] [<commit>] |
4
flags
|
|
1 recipe |
— | — |
git log, git diff
|
|
git blame
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Annotate each line of a file with the commit that last touched it. | git blame [-L <range>] [-w] [-C] [-M] <file> |
4
flags
|
|
1 recipe |
— | — |
git log, git show
|
|
git bisect
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Binary-search the commit history to find the one that introduced a bug. | git bisect [start|good|bad|reset] [<commit>] |
4
flags
|
|
1 recipe |
— | — |
git log, git diff
|
|
git submodule
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Manage repositories nested inside the current one. | git submodule [add|init|update|status|deinit] [args...] |
5
flags
|
|
1 recipe |
Submodules are notoriously fiddly — they pin specific commits, so pulling main may leave submodules at stale SHAs unless you |
— |
git clone
|
|
git worktree
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Check out multiple branches simultaneously in separate working directories. | git worktree [add|list|remove|prune] [<path>] [<commit-ish>] |
5
flags
|
|
1 recipe |
Each branch can only be checked out in one worktree at a time — git will refuse to add a worktree for a branch already in use elsewhere. Clean up stale worktrees with |
— |
git branch, git switch
|
|
git clean
⚙️
⚠ destructive |
⚙️ Cross-platform
|
⚠ destructive | Remove untracked files and directories from the working tree. | git clean [-f] [-d] [-x] [-n] [<path>...] |
5
flags
|
|
1 recipe |
|
— |
git restore, git reset
|
|
git config
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Read and write per-repo, user-global, or system-wide git settings. | git config [--global|--local|--system] [<key> [<value>] | --list | --unset <key>] |
6
flags
|
|
1 recipe |
Local config ( |
— |
git alias
|
|
git describe
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Describe a commit using the nearest reachable tag and offset. | git describe [--tags] [--always] [--dirty[=<suffix>]] [<commit>] |
5
flags
|
|
1 recipe |
— | — |
git tag, git log
|
|
gh pr
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Create, view, and manage GitHub pull requests from the terminal. | gh pr [create|view|list|checkout|merge|close|edit] [<number>|<url>] [flags] |
8
flags
|
|
1 recipe |
— |
Use gh pr create after pushing instead of opening the GitHub web UI — it stays in the terminal flow.
|
gh repo, gh issue, git push
|
|
gh repo
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Create, clone, fork, and view GitHub repositories from the terminal. | gh repo [create|clone|fork|view|sync] [<repo>] [flags] |
6
flags
|
|
1 recipe |
— | — |
gh pr, gh issue, git clone, git remote
|
|
gh issue
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Create, view, list, and close GitHub issues from the terminal. | gh issue [create|view|list|close|edit|comment] [<number>] [flags] |
6
flags
|
|
1 recipe |
— | — |
gh pr, gh repo
|
|
apt
🐧🛡🤖
▲ caution |
🐧 Linux🛡 root🤖 Termux
|
▲ caution | Debian/Ubuntu package manager — the user-facing wrapper around apt-get and apt-cache. | apt [update|upgrade|install|remove|purge|autoremove|search|show] [<pkg>...] |
8
flags
|
|
2
recipes
|
Always run |
apt supersedes apt-get/apt-cache for interactive use; prefer apt-get in scripts for its stable CLI contract
|
apt-get, dpkg
|
|
brew
🍎🐧⚙️
▲ caution |
🍎 macOS🐧 Linux⚙️ Cross-platform
|
▲ caution | Homebrew package manager for macOS (and Linux via Linuxbrew). | brew [install|uninstall|upgrade|search|info|services] [<pkg>...] |
9
flags
|
|
2
recipes
|
Never run |
— |
port, apt
|
|
pacman
🐧🛡
▲ caution |
🐧 Linux🛡 root
|
▲ caution | Arch Linux package manager — fast, simple, and handles full system upgrades atomically. | pacman [-S|-R|-Q|-Sy|-Syu|-Ss|-U] [<pkg>...] |
9
flags
|
|
2
recipes
|
Never run |
— |
yay, paru, dnf
|
|
pip
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Install Python packages from PyPI — the standard tool for pure-Python library dependencies. | pip [install|uninstall|list|show|freeze] [<pkg>...] |
8
flags
|
|
2
recipes
|
Never |
uv pip is a drop-in replacement 10–100× faster; pipx handles CLI tool installs in isolated envs
|
pipx, uv, poetry
|
|
pipx
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Install Python CLI tools into isolated per-tool virtual environments so they never conflict. | pipx [install|uninstall|upgrade|run|list] <pkg> |
7
flags
|
|
2
recipes
|
|
uv tool install is a faster drop-in for pipx install
|
pip, uv
|
|
npm
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Node.js package manager — installs dependencies, runs scripts, and publishes packages. | npm [install|uninstall|update|run|publish|init] [<pkg>...] |
9
flags
|
|
2
recipes
|
Use |
pnpm or bun are faster drop-ins with stricter dependency isolation
|
npx, pnpm, yarn
|
|
npx
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Run a one-off npm package binary without installing it globally. | npx [-y] <package>[@version] [args...] |
4
flags
|
|
2
recipes
|
|
— |
npm
|
|
cargo
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Rust package manager and build tool — manages crate dependencies, compilation, and testing. | cargo [new|build|run|test|add|install|publish] [<args>...] |
8
flags
|
|
2
recipes
|
|
— |
rustup
|
|
bundle
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Ruby's Bundler — manage gem dependencies per project using a Gemfile and Gemfile.lock. | bundle [install|update|exec|add|check] [<gem>...] |
6
flags
|
|
2
recipes
|
Always prefix Ruby commands with |
— |
gem
|
|
dnf
🐧🛡
▲ caution |
🐧 Linux🛡 root
|
▲ caution | Fedora and RHEL package manager — the modern successor to yum with improved dependency resolution. | dnf [install|remove|upgrade|search|info|list|group] [<pkg>...] |
9
flags
|
|
2
recipes
|
|
dnf replaces yum — same subcommands, faster solver, and better output
|
yum, rpm, apt
|
|
apk
🐧🛡
▲ caution |
🐧 Linux🛡 root
|
▲ caution | Alpine Linux package manager — lean and fast, commonly used in Docker container images. | apk [add|del|update|upgrade|search|info] [<pkg>...] |
7
flags
|
|
2
recipes
|
The |
— |
apt, dnf
|
|
dpkg
🐧🛡
▲ caution |
🐧 Linux🛡 root
|
▲ caution | Low-level Debian package tool — install, remove, and inspect individual .deb files. | dpkg [-i|-r|-l|-L|-S] [<pkg>|<file>] |
6
flags
|
|
2
recipes
|
|
— |
apt, apt-get
|
|
yarn
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Alternative Node.js package manager — deterministic installs via a lockfile, workspaces support. | yarn [install|add|remove|run|upgrade] [<pkg>...] |
7
flags
|
|
2
recipes
|
Classic Yarn v1 and Berry (v2+) have meaningfully different behaviours — Berry’s Plug’n’Play mode bypasses |
pnpm or bun offer comparable speed with stricter hoisting rules
|
npm, pnpm, bun
|
|
pnpm
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Performant, disk-efficient Node package manager using a shared content-addressable store. | pnpm [install|add|remove|run|exec|dlx] [<pkg>...] |
8
flags
|
|
2
recipes
|
pnpm’s strict symlinked |
bun is a comparable alternative; both outperform npm on install speed
|
npm, yarn
|
|
flatpak
🐧
▲ caution |
🐧 Linux
|
▲ caution | Install sandboxed Linux desktop applications from Flathub and other remotes, distribution-agnostic. | flatpak [install|uninstall|update|run|list|search] [<remote>] <app> |
7
flags
|
|
2
recipes
|
Flatpak apps run in a sandbox with restricted access to the host filesystem — some apps need extra permissions granted via |
— |
snap, apt, dnf
|
|
snap
🐧
▲ caution |
🐧 Linux
|
▲ caution | Install sandboxed snap packages from the Snap Store — cross-distribution, auto-updating. | snap [install|remove|refresh|find|list|info] [<pkg>] |
7
flags
|
|
2
recipes
|
Snaps run as squashfs images mounted at |
— |
flatpak, apt
|
|
gem
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Ruby's built-in package manager — install, manage, and publish RubyGems globally or per-user. | gem [install|uninstall|update|list|search|info] [<gem>...] |
8
flags
|
|
2
recipes
|
Avoid |
— |
bundle, rbenv
|
|
apt-get
🐧🛡
▲ caution |
🐧 Linux🛡 root
|
▲ caution | Low-level Debian/Ubuntu package tool with a stable CLI contract — preferred over apt in scripts. | apt-get [update|upgrade|dist-upgrade|install|remove|purge|autoremove] [<pkg>...] |
9
flags
|
|
2
recipes
|
Prefer |
apt is the friendlier interactive front-end; keep apt-get for scripts
|
apt, dpkg
|
|
winget
🪟
▲ caution |
🪟 Windows
|
▲ caution | Windows Package Manager — Microsoft's official CLI for installing and updating Windows apps. | winget [install|uninstall|upgrade|search|show|list] [<id>|<name>] |
8
flags
|
|
2
recipes
|
Package IDs (e.g. |
— |
choco
|
|
choco
🪟
▲ caution |
🪟 Windows
|
▲ caution | Chocolatey — a community-driven Windows package manager built on PowerShell and NuGet. | choco [install|uninstall|upgrade|search|list|outdated] [<pkg>...] |
8
flags
|
|
2
recipes
|
Chocolatey must run from an elevated (Administrator) PowerShell or cmd, and most operations need |
winget is Microsoft's first-party alternative; Chocolatey has a larger community catalogue
|
winget
|
|
zypper
🐧🛡
▲ caution |
🐧 Linux🛡 root
|
▲ caution | openSUSE and SUSE Linux Enterprise package manager with strong dependency and repo handling. | zypper [in|rm|up|dup|se|if|ref] [<pkg>...] |
8
flags
|
|
2
recipes
|
On rolling Tumbleweed, use |
— |
dnf, apt
|
|
nix-env
🐧
▲ caution |
🐧 Linux
|
▲ caution | Imperative package manager for Nix — install, upgrade, and roll back packages per user profile. | nix-env [-i|-e|-u|-q] [<pkg>...] [--rollback] |
7
flags
|
|
2
recipes
|
Prefer attribute-path installs ( |
nix profile (with flakes) is the newer interface superseding nix-env
|
apt, dnf
|
|
tar
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Tape archiver — bundle (and optionally compress) directories. | tar [c|x|t] [v] [z|j|J] [-f <archive>] [<files>...] |
11
flags
|
|
2
recipes
|
Argument order matters — |
— |
gzip, xz, zip, zstd
|
|
zip
🐧🍎🪟⚙️🤖
▲ caution |
🐧 Linux🍎 macOS🪟 Windows⚙️ Cross-platform🤖 Termux
|
▲ caution | Create a ZIP archive — the portable cross-platform format. | zip [-r] [-9] [-e] [-x <pat>] <archive>.zip <files>... |
6
flags
|
|
1 recipe |
|
— |
unzip, tar, 7z
|
|
unzip
🐧🍎🪟⚙️🤖
▲ caution |
🐧 Linux🍎 macOS🪟 Windows⚙️ Cross-platform🤖 Termux
|
▲ caution | Extract files from a ZIP archive. | unzip [-l] [-o] [-d <dir>] <archive>.zip [<files>...] |
6
flags
|
|
1 recipe |
Without |
— |
zip, tar, 7z
|
|
gzip
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Single-file gzip compression (.gz) — the universal Unix compression tool. | gzip [-d] [-k] [-<level>] <file>... |
6
flags
|
|
1 recipe |
|
zstd compresses faster than gzip at similar or better ratios and supports multithreading — prefer it when both sides control the toolchain.
|
tar, xz, bzip2, zstd
|
|
7z
🐧🍎🪟⚙️
▲ caution |
🐧 Linux🍎 macOS🪟 Windows⚙️ Cross-platform
|
▲ caution | 7-Zip — high-ratio compression with strong encryption, supports many formats. | 7z [a|x|e|l|t] [-p<pwd>] [-mhe=on] <archive>.7z [<files>...] |
8
flags
|
|
1 recipe |
On Linux/macOS the binary may be named |
— |
zip, tar, xz
|
|
xz
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | LZMA2 compression — smallest archives at the cost of CPU time. | xz [-d] [-k] [-<level>] [-T <n>] <file> |
6
flags
|
|
1 recipe |
xz is single-threaded by default and noticeably slow — always add |
zstd compresses and decompresses far faster than xz at similar ratios; prefer zstd for interactive use and reserve xz for distribution archives where download size is critical.
|
gzip, zstd, bzip2, tar
|
|
bzip2
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Block-sorting Burrows–Wheeler compression — better ratio than gzip, slower. | bzip2 [-d] [-k] [-<level>] <file>... |
5
flags
|
|
1 recipe |
bzip2 does not support multithreading natively — use |
zstd is dramatically faster than bzip2 at comparable or better compression ratios. Prefer zstd for new archives; bzip2 remains relevant only for reading legacy .tar.bz2 files.
|
gzip, xz, zstd
|
|
zstd
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Zstandard — fast compression balancing gzip's speed with xz's ratio. | zstd [-d] [-<level>] [-T <n>] [-k] [--long] <file>... |
7
flags
|
|
2
recipes
|
|
— |
gzip, xz, tar
|
|
sudo
🐧🍎⚙️🛡🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🛡 root🤖 Termux
|
▲ caution | Run a single command as another user (default: root). | sudo [-i|-u <user>|-E|-k] <cmd> [args...] |
6
flags
|
|
1 recipe |
|
— |
su, doas, visudo
|
|
chmod
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Change file permissions using octal or symbolic notation. | chmod [<mode>|<symbolic>] <file>... |
5
flags
|
|
2
recipes
|
Octal cheat sheet: |
— |
chown, umask, stat, ↳ chmod
|
|
chown
🐧🍎⚙️🛡
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🛡 root
|
▲ caution | Change file owner and / or group. | chown [-R] [<user>][:<group>] <file>... |
5
flags
|
|
1 recipe |
— | — |
chmod, chgrp
|
|
umask
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Show or set the default permission mask applied when new files are created. | umask [-S] [<octal>|<symbolic>] |
2 flags
|
|
1 recipe |
Umask is subtracted from the default base mode (666 for files, 777 for dirs). |
— |
chmod
|
|
df
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Report filesystem disk space usage. | df [-h] [-T] [-i] [<path>] |
4
flags
|
|
1 recipe |
“No space left on device” can mean blocks OR inodes — check |
Use duf for a colourised, categorised disk-usage overview (brew install duf / apt install duf).
|
du, lsblk
|
|
du
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Estimate file space usage per directory. | du [-h] [-s] [-d <depth>] [<path>...] |
5
flags
|
|
1 recipe |
|
Use dust for a tree-formatted, colourised disk-usage view (cargo install du-dust).
|
df, ncdu
|
|
mount
🐧🍎⚙️🛡
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🛡 root
|
▲ caution | Mount a filesystem at a directory, or list current mounts. | mount [-t <type>] [-o <opts>] <device> <mountpoint> |
3
flags
|
|
1 recipe |
— | — |
umount, lsblk, fstab
|
|
umount
🐧🍎⚙️🛡
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🛡 root
|
▲ caution | Unmount a filesystem safely before removing or ejecting the device. | umount [-l] [-f] <mountpoint|device> |
2 flags
|
|
— |
“Target is busy” usually means a shell is |
— |
mount, fuser, lsof
|
|
lsblk
🐧
✓ safe |
🐧 Linux
|
✓ safe | List block devices in a tree (disks, partitions, LUKS, LVM mappings). | lsblk [-f] [-p] [-o <cols>] |
3
flags
|
|
1 recipe |
— | — |
df, blkid, fdisk
|
|
free
🐧
✓ safe |
🐧 Linux
|
✓ safe | Show RAM and swap usage including buffers and cache. | free [-h] [-s <sec>] [-c <count>] |
3
flags
|
|
1 recipe |
|
Use htop or btop for a live, graphical memory + swap gauge alongside process info.
|
top, vmstat
|
|
uname
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Print system and kernel information. | uname [-a|-r|-s|-m] |
4
flags
|
|
1 recipe |
— | — |
lsb_release, hostnamectl
|
|
id
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Print the calling user's UID, GID, and all group memberships. | id [-u|-g|-G|-n] [<user>] |
4
flags
|
|
1 recipe |
— | — |
whoami, groups
|
|
chgrp
🐧🍎⚙️🛡
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🛡 root
|
▲ caution | Change group ownership of files — the group-only counterpart to chown. | chgrp [-R] <group> <file>... |
2 flags
|
|
1 recipe |
— | — |
chown, chmod
|
|
passwd
🐧🍎⚙️🛡
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🛡 root
|
▲ caution | Change a user's login password. | passwd [<user>] |
4
flags
|
|
1 recipe |
— | — |
chpasswd, usermod
|
|
whoami
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Print the effective user's login name. | whoami |
1 flag
|
|
1 recipe |
— | — |
id, who
|
|
who
🐧🍎⚙️
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
✓ safe | Show who is currently logged in to the system. | who [-H] [-a] [<file>] |
3
flags
|
|
1 recipe |
— | — |
w, whoami, last
|
|
uptime
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Show how long the system has been running and the 1/5/15-minute load averages. | uptime [-p] [-s] |
2 flags
|
|
1 recipe |
Load average columns are 1-min, 5-min, 15-min averages. On Linux they include processes in uninterruptible sleep (D state); on macOS / BSD they don’t — so the same machine reports different numbers under each OS. |
— |
top, w
|
|
hostname
🐧🍎⚙️🛡
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🛡 root
|
▲ caution | Print or set the system's hostname. | hostname [-f|-s|-i] [<new>] |
4
flags
|
|
1 recipe |
— | — |
hostnamectl, uname
|
|
systemctl
🐧
▲ caution |
🐧 Linux
|
▲ caution | Control the systemd system and service manager — start, stop, enable, and inspect units. | systemctl <verb> [<unit>] |
9
flags
|
|
2
recipes
|
|
— |
journalctl, service, systemd-analyze
|
|
journalctl
🐧
✓ safe |
🐧 Linux
|
✓ safe | Query and filter logs collected by systemd's journal daemon. | journalctl [-u <unit>] [-f] [-n <lines>] [-S <since>] [-p <priority>] |
9
flags
|
|
2
recipes
|
— | — |
systemctl, dmesg, syslog
|
|
crontab
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Schedule recurring commands with the cron daemon using per-user crontab files. | crontab [-l|-e|-r] [-u <user>] |
4
flags
|
|
1 recipe |
Cron runs with a minimal PATH — always use absolute paths for both commands and any files they reference. The five-field time spec is |
— |
systemctl, at, anacron
|
|
groups
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Print the group memberships of the current user or a named user. | groups [<user>] |
1 flag
|
|
1 recipe |
Group membership changes made with |
— |
id, whoami, usermod
|
|
echo
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Print arguments to stdout. | echo [-n] [-e] <string>... |
2 flags
|
|
2
recipes
|
|
— |
printf
|
|
printf
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Format and print — like C's printf, portable across POSIX shells. | printf <format> [<arg>...] |
5
flags
|
|
2
recipes
|
— | — |
echo
|
|
export
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Mark a shell variable as exported to child processes. | export [-p] [-n] [<name>[=<value>]...] |
3
flags
|
|
2
recipes
|
An assignment without |
— |
env, unset
|
|
env
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Print the environment, or run a command with a modified one. | env [-i] [<name>=<value>...] [<cmd> [args...]] |
2 flags
|
|
2
recipes
|
The shebang line |
— |
export, printenv
|
|
alias
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Create a shorthand for a longer command. | alias [<name>='<replacement>'] |
3
flags
|
|
2
recipes
|
Aliases are shell-local — define them in |
— |
unalias, function
|
|
history
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Show or manipulate the command history. | history [-c] [-d <offset>] [<count>] |
3
flags
|
|
2
recipes
|
Bash truncates history to |
— |
alias
|
|
which
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Show the full path to a command (or that it's an alias / builtin). | which [-a] <name> |
1 flag
|
|
2
recipes
|
|
Prefer command -v in scripts — POSIX-portable and aware of builtins.
|
type, whereis, command
|
|
type
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Tell you what a name is — alias, builtin, function, or external binary. | type [-a] [-t] <name>... |
2 flags
|
|
2
recipes
|
— | — |
which, command
|
|
man
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Show the manual page for a command, syscall, or function. | man [<section>] <name> |
3
flags
|
|
2
recipes
|
Inside man: |
— |
apropos, whatis, tldr
|
|
read
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Read one line from stdin into shell variables. | read [-p <prompt>] [-s] [-r] [-t <sec>] [-a <arr>] <var>... |
5
flags
|
|
2
recipes
|
Always use |
— |
readarray, mapfile
|
|
Redirection idioms
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Plumb stdin / stdout / stderr to files, pipes, and each other. | cmd [> file] [>> file] [< file] [2> file] [2>&1] [<<EOF...EOF] [<(cmd)] |
10
flags
|
|
2
recipes
|
Order matters: |
— |
tee, xargs
|
|
unalias
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Remove one or more shell aliases. | unalias [-a] <name>... |
2 flags
|
|
1 recipe |
— | — |
alias
|
|
printenv
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Print environment variables. | printenv [<name>...] |
2 flags
|
|
1 recipe |
— | — |
env, export
|
|
set
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Set shell options or positional parameters; with no args, print all shell vars. | set [-e|-u|-x|-o <opt>|+<flag>] [-- <args>...] |
5
flags
|
|
2
recipes
|
|
— |
shopt, unset
|
|
unset
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Remove a shell variable or function. | unset [-v|-f] <name>... |
2 flags
|
|
1 recipe |
Unsetting critical variables like |
— |
export, set
|
|
pushd / popd
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Directory stack — push the current dir + cd somewhere new, then pop back. | pushd <dir> | popd | dirs |
4
flags
|
|
2
recipes
|
— | — |
cd, dirs
|
|
source
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Execute a script in the current shell (so its vars/aliases persist). | source <file> [args...] | . <file> |
2 flags
|
|
2
recipes
|
Running a script via |
— |
export, exec
|
|
eval
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Concatenate args and execute them as a shell command. | eval <command-string> |
1 flag
|
|
2
recipes
|
|
— |
exec, source
|
|
trap
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Run a command when the shell receives a signal or exits. | trap '<cmd>' <signal>... |
5
flags
|
|
2
recipes
|
— | — |
kill, set
|
|
command
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Run a command, bypassing aliases and functions, or test whether it exists. | command [-v|-V|-p] <name> [args...] |
3
flags
|
|
2
recipes
|
— | — |
which, type
|
|
python3
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Run Python — REPL, scripts, modules, one-liners. | python3 [-i] [-c "<code>"] [-m <module>] [<script> [args]] |
5
flags
|
|
2
recipes
|
System Python and your project’s Python are different — use |
uv / pyenv manage parallel interpreter versions and virtualenvs
|
pip, pipx, uv, pyenv
|
|
node
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Run JavaScript with Node.js — REPL, scripts, one-liners. | node [-e "<code>"] [-p "<expr>"] [<script> [args]] |
5
flags
|
|
2
recipes
|
— |
bun / deno — faster or more secure drop-in alternatives; nvm / fnm manage multiple Node versions
|
npm, npx, nvm, deno, bun
|
|
nvm
🐧🍎
▲ caution |
🐧 Linux🍎 macOS
|
▲ caution | Node Version Manager — install and switch between Node.js versions. | nvm [install|use|ls|alias|exec] [<version>] |
6
flags
|
|
2
recipes
|
|
fnm (fast Node manager, Rust) — same concept but faster shell startup and native Windows support
|
node, npm, bun
|
|
bun
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Fast all-in-one JavaScript runtime + package manager + bundler + test runner. | bun [run|install|add|x|test|build] [<args>...] |
6
flags
|
|
2
recipes
|
Node-compatible for most APIs but not 100% — some native modules (notably anything with N-API quirks) still break. For production-critical Node apps, validate compatibility first. Windows support shipped in 2024 but is still less mature than Linux/macOS. |
bun is itself the modern alternative — already faster than Node + npm combined for most tasks
|
node, npm, deno, npx
|
|
ruby
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Run Ruby — REPL via irb, scripts, one-liners. | ruby [-e "<code>"] [-n|-p] [-l] [<script> [args]] |
5
flags
|
|
2
recipes
|
— | — |
irb, gem, bundle
|
|
irb
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Interactive Ruby REPL. | irb [-r <lib>] [--simple-prompt] |
2 flags
|
|
1 recipe |
— | — |
ruby, pry
|
|
bash
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | GNU Bash shell — interactive or batch. | bash [-c "<cmd>"] [-i] [-l] [<script> [args]] |
7
flags
|
|
2
recipes
|
The “strict mode” trio |
— |
zsh, sh, dash
|
|
zsh
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Z shell — bash-compatible-ish with extras (globbing, prompts, plugins). | zsh [-c "<cmd>"] [-i] [-l] [-x] [<script> [args]] |
4
flags
|
|
1 recipe |
Default shell on macOS since Catalina. Most bash scripts work unchanged but a few subtle differences exist (word splitting on unquoted vars, glob behaviour). Pin scripts to bash with |
— |
bash, oh-my-zsh
|
|
Shebang lines
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | The #! interpreter directive at the top of a script. | #!<path-to-interpreter> [<flags>] |
3
flags
|
|
1 recipe |
Use |
— |
bash, python3, node
|
|
deno
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Secure-by-default JavaScript / TypeScript runtime (Node-compatible-ish). | deno [run|test|fmt|lint|task|install] [--allow-<perm>] [<file>] |
7
flags
|
|
2
recipes
|
— |
deno is itself the modern alternative — built-in TypeScript, secure by default, no node_modules
|
node, bun
|
|
uv
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Fast Python package + project manager (Rust, drop-in for pip + venv + pip-tools). | uv [pip|venv|run|add|sync|tool] [<args>...] |
6
flags
|
|
2
recipes
|
— |
uv is itself the modern replacement for pip + venv + pip-tools + pipx in one binary
|
pip, pipx, poetry
|
|
go
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Run Go — build, test, format, manage modules. | go [run|build|test|fmt|mod|install|get] [<args>...] |
7
flags
|
|
2
recipes
|
— | — |
rustc, node
|
|
rustc
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Rust compiler — rarely invoked directly, usually wrapped by cargo. | rustc [-O] [--edition <year>] [-o <out>] [--explain <code>] <file.rs> |
4
flags
|
|
1 recipe |
For real projects always use |
— |
cargo, rustup
|
|
pyenv
🐧🍎
▲ caution |
🐧 Linux🍎 macOS
|
▲ caution | Install and switch between multiple Python interpreter versions. | pyenv [install|global|local|shell|versions|rehash] [<version>] |
6
flags
|
|
2
recipes
|
pyenv works by prepending shims to PATH — if your shell doesn’t source |
uv can install and pin Python versions too — uv python install 3.12 — and is faster
|
python3, uv, pip
|
|
java
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Run compiled Java programs and inspect the JVM. | java [-cp <classpath>] [-jar <file>] [-D<prop>=<val>] [<class> [args]] |
5
flags
|
|
2
recipes
|
|
— |
javac, mvn, gradle
|
|
dotnet
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Run, build, test, and publish .NET (C#/F#/VB) projects. | dotnet [run|build|test|publish|add|restore|new] [<args>...] |
7
flags
|
|
2
recipes
|
Multiple SDK versions can coexist; a |
— |
java, go
|
|
docker run
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Create and start a container from an image. | docker run [-d] [-it] [--rm] [-p <h>:<c>] [-v <h>:<c>] [-e <k>=<v>] <image> [<cmd>] |
10
flags
|
|
2
recipes
|
Default users inside containers are often |
podman run is a drop-in replacement that runs daemonless and rootless by default — no UID mismatch foot-gun.
|
docker exec, docker ps, docker stop
|
|
docker ps
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | List containers. | docker ps [-a] [--filter <f>] [--format <fmt>] |
4
flags
|
|
1 recipe |
— | — |
docker rm, docker stop
|
|
docker build
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Build an image from a Dockerfile. | docker build [-t <tag>] [-f <Dockerfile>] [--build-arg <k>=<v>] [--target <stage>] <context> |
6
flags
|
|
2
recipes
|
The context ( |
— |
docker buildx, docker push
|
|
docker exec
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Run a command inside an already-running container. | docker exec [-it] [-u <user>] <container> <cmd> [args...] |
4
flags
|
|
1 recipe |
— | — |
docker run, docker logs
|
|
docker logs
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Show stdout / stderr of a container. | docker logs [-f] [--tail <n>] [--since <t>] <container> |
4
flags
|
|
1 recipe |
— | — |
docker ps, docker exec
|
|
docker compose
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Define and run multi-container applications via a YAML file. | docker compose [-f <file>] [up|down|ps|logs|exec|build] [args...] |
8
flags
|
|
2
recipes
|
|
docker compose (space, no hyphen) is the v2 plugin bundled with Docker Desktop and Docker Engine ≥ 20.10. Prefer it over the legacy docker-compose v1 binary.
|
docker run, docker build
|
|
docker stop
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Send SIGTERM to a container, then SIGKILL after a timeout. | docker stop [-t <sec>] <container>... |
1 flag
|
|
1 recipe |
— | — |
docker kill, docker rm
|
|
docker rm
⚙️
⚠ destructive |
⚙️ Cross-platform
|
⚠ destructive | Remove one or more stopped containers. | docker rm [-f] [-v] <container>... |
2 flags
|
|
1 recipe |
— | — |
docker stop, docker ps
|
|
docker images
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | List images stored locally. | docker images [-a] [--filter <f>] [--format <fmt>] [<repo>[:<tag>]] |
4
flags
|
|
1 recipe |
— | — |
docker pull, docker rmi, docker system prune
|
|
docker pull
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Download an image from a registry. | docker pull [--platform <plat>] <image>[:<tag>] |
3
flags
|
|
1 recipe |
— | — |
docker push, docker images
|
|
docker push
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Upload an image to a registry. | docker push <registry>/<repo>[:<tag>] |
2 flags
|
|
1 recipe |
Must |
— |
docker pull, docker login, docker tag
|
|
docker inspect
⚙️
✓ safe |
⚙️ Cross-platform
|
✓ safe | Dump low-level JSON metadata for a container, image, network, or volume. | docker inspect [--format <go-template>] <object>... |
2 flags
|
|
1 recipe |
— | — |
docker ps, docker logs
|
|
docker rmi
⚙️
⚠ destructive |
⚙️ Cross-platform
|
⚠ destructive | Remove one or more images from local storage. | docker rmi [-f] <image>... |
2 flags
|
|
1 recipe |
— | — |
docker images, docker system prune
|
|
docker system prune
⚙️
⚠ destructive |
⚙️ Cross-platform
|
⚠ destructive | Remove all unused containers, networks, images, and optionally volumes. | docker system prune [-a] [-f] [--volumes] |
4
flags
|
|
1 recipe |
|
— |
docker rm, docker rmi, docker volume rm
|
|
docker volume
⚙️
⚠ destructive |
⚙️ Cross-platform
|
⚠ destructive | Manage named volumes — create, list, inspect, and remove persistent storage. | docker volume [create|ls|inspect|rm|prune] [args...] |
5
flags
|
|
1 recipe |
|
— |
docker run, docker system prune
|
|
podman
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Daemonless, rootless Docker-compatible container engine. | podman <command> [args...] |
4
flags
|
|
1 recipe |
CLI is a near-superset of Docker’s — most |
podman is the daemonless, rootless alternative to docker — no background daemon to crash, and rootless by default.
|
docker run, docker build, buildah
|
|
kubectl
⚙️
▲ caution |
⚙️ Cross-platform
|
▲ caution | Talk to a Kubernetes cluster — inspect, deploy, exec, and manage resources. | kubectl [-n <ns>] [get|describe|logs|exec|apply|delete] <resource> [args...] |
6
flags
|
|
2
recipes
|
Always confirm |
— |
kubectx, helm, k9s
|
|
buildah
🐧
▲ caution |
🐧 Linux
|
▲ caution | Build OCI container images without a daemon — layer by layer or from a Dockerfile. | buildah [bud|from|run|copy|commit|push] [args...] |
6
flags
|
|
1 recipe |
|
buildah builds OCI-compliant images without the Docker daemon — the daemonless complement to podman.
|
podman, docker build
|
|
Redirection (> >> 2> &>)
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Route a command's standard output, standard error, or both to a file or device. | <cmd> [>|>>|2>|&>|2>&1] <file> | <cmd> < <file> |
7
flags
|
|
1 recipe |
|
— |
tee, pipe
|
|
Pipe (|)
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Connect the stdout of one command to the stdin of the next, forming a pipeline. | <cmd1> | <cmd2> [| <cmd3> ...] | <cmd1> |& <cmd2> |
2 flags
|
|
1 recipe |
The exit status of a pipeline is the exit status of the last command by default. Set |
— |
tee, xargs, redirection
|
|
Logical operators (&& || ;)
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Chain commands conditionally on success or failure, unconditionally, or send them to the background. | <cmd1> && <cmd2> | <cmd1> || <cmd2> | <cmd1>; <cmd2> | <cmd> & |
4
flags
|
|
1 recipe |
|
— |
command-substitution, pipe
|
|
Command substitution ($(...))
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Capture the output of a command and use it inline as a string or argument. | $(<cmd>) | `<cmd>` | $(( <expr> )) |
3
flags
|
|
1 recipe |
Always double-quote command substitutions — |
— |
process-substitution, logical-operators
|
|
Process substitution (<(...))
🐧🍎
✓ safe |
🐧 Linux🍎 macOS
|
✓ safe | Treat a command's output as a file-like object, enabling commands that require filename arguments to consume live data from another process. | <(<cmd>) | >(<cmd>) |
2 flags
|
|
1 recipe |
Process substitution is a bash and zsh extension — it is not available in POSIX |
— |
pipe, redirection
|
|
Heredoc & herestring (<< <<<)
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Feed a multi-line block of text or a single string directly into a command's stdin without a separate file. | <cmd> << <DELIM> | <cmd> <<- <DELIM> | <cmd> <<< "<string>" |
3
flags
|
|
1 recipe |
Quoting the heredoc delimiter ( |
— |
redirection, pipe
|
|
Brace & tilde expansion ({} ~)
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Generate lists of strings or paths at parse time — before any command runs — enabling concise multi-target operations. | {<a>,<b>,<c>} | {<n>..<m>} | ~ | ~<user> |
4
flags
|
|
1 recipe |
Brace expansion happens before variable expansion, so |
— |
command-substitution
|
|
vim
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Modal terminal text editor — separate modes for moving, inserting, and issuing commands. | vim [+<line>] [-R] [<file>...] |
8
flags
|
|
4
recipes
|
vim is modal — keystrokes mean different things in Normal, Insert, and Visual mode. If typed text does nothing or beeps, you are in Normal mode; press |
nvim (Neovim) is a compatible fork with Lua config and async plugins
|
vimdiff, nano, less
|
|
vimdiff
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Open two to four files in vim with their differences highlighted side by side. | vimdiff <file1> <file2> [<file3> [<file4>]] |
2 flags
|
|
2
recipes
|
The cursor controls which window is the target for |
nvim -d for Neovim; delta or git difftool for richer diffs
|
vim, diff
|
|
nano
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Small, approachable terminal editor with on-screen shortcut hints — no modes to learn. | nano [-l] [+<line>[,<col>]] [<file>] |
6
flags
|
|
2
recipes
|
Saving is |
micro offers a similar modeless feel with mouse and syntax-highlighting defaults
|
vim, less
|
|
less
🐧🍎⚙️
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
✓ safe | Scroll forward and backward through text or files one screen at a time — the default pager. | less [-N] [-S] [+<cmd>] [<file>...] |
7
flags
|
|
2
recipes
|
less is read-only — it never edits the file, so it’s safe on huge or production files (it doesn’t load the whole file into memory). Inside less, |
bat adds syntax highlighting and Git gutters while paging like less
|
vim, nano
|
|
tmux
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Modern terminal multiplexer — detachable sessions split into windows and panes, fully scriptable. | tmux [new|attach|ls|kill-session] [-s <name>] [-t <target>] |
7
flags
|
|
3
recipes
|
Almost every tmux key is preceded by the prefix, by default |
— |
screen, ssh
|
|
screen
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | GNU Screen — the long-standing terminal multiplexer for detachable, persistent shell sessions. | screen [-S <name>] [-r [<name>]] [-ls] [-d <name>] |
6
flags
|
|
2
recipes
|
Screen’s prefix key is |
tmux is the actively developed, more scriptable successor
|
tmux, ssh
|
|
top
🐧🍎⚙️
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
✓ safe | Live, refreshing view of running processes ranked by CPU or memory usage. | top [-d <secs>] [-o <field>] [-p <pid>] [-b -n <count>] |
6
flags
|
|
2
recipes
|
|
htop and btop offer colour, mouse support, and easier sorting
|
htop, ps, free
|
|
htop
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Interactive, colour process viewer with per-core meters, mouse support, and tree view. | htop [-u <user>] [-p <pid>[,<pid>...]] [-t] [-d <tenths>] |
5
flags
|
|
2
recipes
|
|
btop adds graphs and network/disk panels in a similar TUI
|
top, ps, kill
|
|
journalctl
🐧🛡
✓ safe |
🐧 Linux🛡 root
|
✓ safe | Query and display logs from the systemd journal — services, the kernel, and boot history. | journalctl [-u <unit>] [-f] [-b] [-p <prio>] [--since <when>] |
8
flags
|
|
2
recipes
|
Without |
— |
dmesg, systemctl, less
|
|
dmesg
🐧🛡
✓ safe |
🐧 Linux🛡 root
|
✓ safe | Print the kernel ring buffer — boot messages, driver output, and hardware events. | dmesg [-H] [-w] [-T] [-l <level>] [--clear] |
5
flags
|
|
2
recipes
|
On many distributions reading |
journalctl -k reads the same kernel log via systemd with persistent history
|
journalctl, less
|
|
free
🐧
✓ safe |
🐧 Linux
|
✓ safe | Show total, used, and available system memory and swap in a single snapshot. | free [-h] [-m|-g] [-s <secs>] [-t] |
5
flags
|
|
2
recipes
|
The number that matters is the |
— |
top, vmstat, uptime
|
|
uptime
🐧🍎⚙️
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
✓ safe | Show how long the system has been running plus the 1-, 5-, and 15-minute load averages. | uptime [-p] [-s] |
2 flags
|
|
2
recipes
|
Load average counts processes that are running or waiting (including on disk I/O), not just CPU usage — a load of 4 is healthy on a 4-core box but saturated on a single core. Compare the figure to your core count ( |
— |
top, free, vmstat
|
|
vmstat
🐧
✓ safe |
🐧 Linux
|
✓ safe | Report virtual-memory, process, CPU, and I/O statistics sampled over an interval. | vmstat [<delay> [<count>]] [-s] [-d] [-w] |
5
flags
|
|
2
recipes
|
The first line of output is the average since boot and should be ignored — only the lines after a delay sample reflect current activity. High values in the |
— |
iostat, free, top
|
|
iostat
🐧
✓ safe |
🐧 Linux
|
✓ safe | Report CPU utilisation and per-device disk I/O throughput and latency. | iostat [-x] [-d] [-h] [-m] [<interval> [<count>]] |
6
flags
|
|
2
recipes
|
|
— |
vmstat, top, free
|
|
psql
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | PostgreSQL's interactive terminal — run SQL, inspect schemas, and script queries against a database. | psql [-h <host>] [-p <port>] [-U <user>] [-d <db>] [-c <sql>] [-f <file>] |
7
flags
|
|
2
recipes
|
Inside psql, backslash meta-commands differ from SQL: |
— |
mysql, sqlite3
|
|
mysql
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Interactive client for MySQL and MariaDB — run SQL, manage databases, and execute scripts. | mysql [-h <host>] [-P <port>] [-u <user>] [-p] [-e <sql>] [<db>] |
7
flags
|
|
2
recipes
|
Putting the password directly after |
— |
psql, sqlite3
|
|
sqlite3
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Command-line shell for SQLite — a serverless, single-file SQL database needing no daemon. | sqlite3 [<file.db>] [<sql>] [-csv|-json|-html] |
6
flags
|
|
2
recipes
|
Dot-commands like |
— |
psql, mysql
|
|
redis-cli
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Command-line client for Redis — issue commands against the in-memory key-value store. | redis-cli [-h <host>] [-p <port>] [-a <pass>] [-n <db>] [<command> ...] |
6
flags
|
|
2
recipes
|
Never run |
— |
mongosh
|
|
mongosh
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | MongoDB's modern JavaScript shell — connect, query collections, and run admin commands. | mongosh [<uri>] [--host <h>] [--port <p>] [-u <user>] [--eval <js>] [--file <f>] |
7
flags
|
|
2
recipes
|
The shell language is JavaScript, not SQL — you call methods like |
mongosh replaces the legacy mongo shell removed in MongoDB 6+
|
redis-cli, psql
|
|
gpg
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | GnuPG — encrypt, decrypt, sign, and verify data using OpenPGP keys. | gpg [-e] [-d] [-s] [--armor] [-r <recipient>] [<file>] |
8
flags
|
|
2
recipes
|
Symmetric ( |
— |
openssl, age
|
|
openssl
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Swiss-army crypto toolkit — TLS certificates, key generation, hashing, and raw encryption. | openssl <subcommand> [options...] |
7
flags
|
|
2
recipes
|
|
— |
gpg, ssh-keygen, base64
|
|
ssh-keygen
🐧🍎⚙️🤖
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
▲ caution | Generate, manage, and convert SSH authentication key pairs. | ssh-keygen [-t <type>] [-b <bits>] [-f <file>] [-C <comment>] [-p] |
7
flags
|
|
2
recipes
|
The |
— |
openssl, gpg
|
|
base64
🐧🍎⚙️🤖
✓ safe |
🐧 Linux🍎 macOS⚙️ Cross-platform🤖 Termux
|
✓ safe | Encode binary data to printable ASCII (and back) using the base64 alphabet. | base64 [-d] [-w <cols>] [<file>] |
3
flags
|
|
2
recipes
|
base64 is encoding, not encryption — it provides zero confidentiality; anyone can decode it instantly. Never use it to “hide” a secret. The GNU |
— |
openssl, gpg
|
|
age
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Modern, minimal file-encryption tool with small keys and a deliberately tiny feature set. | age [-e] [-d] [-r <recipient>] [-p] [-o <out>] [<file>] |
8
flags
|
|
2
recipes
|
The private identity file (from |
age is itself the modern alternative to gpg for simple file encryption
|
gpg, openssl, ssh-keygen
|
|
kubectl
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | The Kubernetes CLI — inspect, deploy, and manage resources against a cluster's API server. | kubectl <verb> <resource> [<name>] [-n <namespace>] [-o <format>] |
8
flags
|
|
2
recipes
|
Commands target whatever cluster and namespace the current context selects — run |
— |
helm, docker compose
|
|
helm
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | The Kubernetes package manager — install, upgrade, and roll back applications packaged as charts. | helm <command> [<release>] [<chart>] [-n <namespace>] [-f <values>] |
8
flags
|
|
2
recipes
|
A release name plus namespace must be unique — reusing a name in the same namespace fails unless you |
— |
kubectl
|
|
docker compose
🐧🍎⚙️
▲ caution |
🐧 Linux🍎 macOS⚙️ Cross-platform
|
▲ caution | Define and run a multi-container application stack from a single compose YAML file. | docker compose [-f <file>] <up|down|ps|logs|build|exec> [options] |
8
flags
|
|
2
recipes
|
Modern Docker ships |
docker compose (v2 plugin) replaces the standalone docker-compose Python script
|
kubectl, helm
|
No commands match your filters.