Skip to main content
Toollyz

Search tools

Search for a command to run...

Terminal Command Cheat Sheet

Curated 80+ command reference covering Bash/Zsh, Git, Docker, networking, macOS and Linux. Each entry has a one-line description, a runnable example, and tags. Click to copy.

What is the Terminal Command Cheat Sheet?

Terminal Command Cheat Sheet is a curated reference of ~80 high-traffic shell commands organised across six sections: Bash/Zsh (file ops, text processing, processes), Git (status, log, stash, amend, rebase, cherry-pick, bisect), Docker (ps, run, exec, logs, build, prune), Networking (curl, wget, ping, traceroute, dig, ssh, scp, rsync), macOS (pbcopy, open, mdfind, brew services) and Linux (apt, systemctl, journalctl, ss). Each entry has a one-line description and a runnable example. Filter by shell section, search by command name or description, and click to copy the command to your clipboard. Tag chips let you narrow further — file / search / log / git / clean / install / service / network and more. Built specifically as a 'forgot the flag' reference; deliberately concise so the most-used variants are one click away.

How to use it

  1. Browse by section: Bash/Zsh, Git, Docker, Network, macOS, Linux.
  2. Or search by command name, flag or what you're trying to do.
  3. Click any tag chip (#file, #log, #git, …) to narrow further.
  4. Click any command to copy it to your clipboard.

Benefits

  • 80+ curated commands across six shell sections (Bash/Zsh, Git, Docker, Network, macOS, Linux).
  • Each entry has a real, runnable example — not just syntax.
  • Free-text search across command, description and tags.
  • Tag chips for cross-cutting categories (file, search, log, git, clean, install, service, network).
  • One-click copy of the command (without the example).
  • Sticky filter state — your last search and section persist in localStorage.
  • Bash-script-friendly examples (with `2>&1`, `head`, `xargs` chains where relevant).
  • Runs 100% in your browser — no API, no server.

Frequently asked questions

Why these 80 commands and not more?

Curated commands beat comprehensive lists. We picked the variants you'll actually paste into a terminal day-to-day. For exhaustive references use the man page or tldr.

How is this different from `tldr`?

tldr is a CLI tool with community examples. This is a web cheat sheet you can search from any browser, including a phone or tablet. Different use cases — both are valuable.

Are the examples tested?

Yes, on macOS Sonoma and Ubuntu 22.04. Some Linux-only commands (systemctl, journalctl, apt) require a Linux host.

Can I add my own commands?

Not in the UI today. The cheat sheet is a static module — fork the repo on GitHub to contribute additions.

Why is `rm -rf` in here?

Because everyone uses it. The example calls it on `.next` which is safe to delete. Treat the entry as a reminder of the danger.

What's the difference between #file and #dir tags?

#file = operations on files (cp, mv, rm, cat). #dir = operations on directories (cd, mkdir, tree). #search = finders (find, grep, mdfind, lsof). The tags overlap and we lean toward listing commands in multiple tags rather than picking one.

Is there a print-friendly view?

Not yet. Use the browser's print-to-PDF; the layout is clean enough to fit a couple of A4 pages.

Does it work offline?

Yes — the whole cheat sheet is bundled with the page. Once loaded, no further network calls.

What's `rsync -av --progress` for?

Mirror a local directory to a remote (or vice versa) with archive flags, verbose progress and human-readable rates. The example targets a `build/` directory upload — change the source/dest as needed.

Why `ss -tunlp` instead of `netstat`?

ss replaces netstat on modern Linux — faster and shows more info. The flags: -t (TCP), -u (UDP), -n (numeric), -l (listening), -p (process).

Is anything uploaded?

No. The cheat sheet runs entirely in your browser.