Instant Command Cheat Sheets with curl cht.sh
Query cheat.sh from the terminal to get concise, example-first help for any command — including specific subcommand recipes — without leaving the shell.
01Command
$ curl -s cht.sh/tar && curl -s cht.sh/tar~extract-single-file02What it does
cheat.sh aggregates community cheat sheets (tldr, Stack Overflow answers and more) and serves them as plain text, so curl drops the answer right into your terminal — no browser, no scrolling through a man page to find one flag. The tilde syntax targets subtasks, which is where it beats the man page: cht.sh/rsync~exclude-directory returns just that recipe. Adding -s keeps the output clean, and the service also supports /:list for all topics, making it a fast lookup layer on top of, not a replacement for, the real documentation.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- cheat.sh — READMEEvidence: cheat.sh serves curated cheat sheets from the command line via curl; topic~subtopic URLs query a specific subcommand, and cht.sh is the short alias.
- curl(1) — Linux manual pageEvidence: curl transfers data from URLs; -s silences the progress meter for clean terminal output.
Last verified: 2026-09-18 · Category: Developer
06Related solutions
Find every occurrence of a pattern across all files in a tree, printed as file:line:number matches.
Generate a modern Ed25519 public/private key pair in ~/.ssh for authenticating to servers and Git platforms without passwords.
Send a HEAD request to any URL and print the status line, server, content type, caching, and redirect headers.