Cheat Sheets — Examples
Hands-on walkthroughs with the Cheat Sheets: look up a git command, find a sheet, filter commands, copy a snippet, and share it via a deep link.
Back to the overview: Cheat Sheets · Open the tool live: www.jpkc.com/tools/cheatsheet/
The manual explains every feature in detail. This page adds concrete workflows — typical lookup situations, step by step.
Example 1: Look up a git command fast
The classic — you want to undo a commit and can't remember whether it was reset or revert.
- Open the Cheat Sheets. The Git sheet is already loaded by default.
- Type a keyword into the
Searchfield, e.g.revert. The command list filters live, sections with no match disappear, and the counter updates to the number of still-matching commands (formatX / N commands). - Read the matching entry — command, short description, and (often) an example. Click the clipboard icon and the command is on your clipboard.
- In the terminal, replace the placeholder (e.g.
<commit>with the real hash) — done.
The keyword doesn't have to be a command name: because the search also runs over the descriptions, you can find the right git command via a word like stash or undo if it appears in the description.
Example 2: Find the right sheet when you're unsure of the tool name
You want to synchronize files but aren't sure whether the tool is rsync or something else.
- Click the
Cheat Sheetdropdown at the top. The category-grouped list of all 219 sheets opens. - Type a fragment into the search field (
Search cheat sheets…), e.g.sync. The list narrows to matching sheet names; categories with no match are hidden. - Navigate with Up/Down arrows and confirm with Enter — or click directly. The sheet loads.
Alternatively, browse the categories: looking for something about backups, you'll find rsync, restic, rustic, BorgBackup, Rclone, and more side by side under Remote & Backup — handy for comparing alternatives.
Example 3: Search a Docker sheet precisely
You need the syntax to inspect a running container.
- Pick Docker from the
Cheat Sheetdropdown (or open/tools/cheatsheet/#dockerdirectly). - Instead of scrolling, type
logsorexecinto theSearchfield. The list shows only the matching commands. - If you'd rather get an overview of a whole topic block, use the
Sectiondropdown and jump straight to the section — the page scrolls there smoothly. - Copy the command you want via its clipboard button.
Remember: command search and section jump are two routes to the goal — the search is faster for a known keyword, the Section dropdown is better when you want to skim a topic.
Example 4: Copy a snippet and use it cleanly
You want to take over a ready-made example, not just the bare command.
- Find the entry (e.g.
ssh-keygenin the ssh sheet). - Many entries have their own syntax-highlighted example block below the description with a real invocation. Next to it sits a second clipboard button — it copies the example, not the generic command line.
- Paste it in the terminal and just adjust the specific values (path, hostname, file name).
The distinction pays off: the upper button copies the generic syntax with placeholders (<…>), while the button on the example copies a filled-in, runnable invocation you only need to tweak.
Example 5: Share or bookmark a sheet via a deep link
You're explaining something to a colleague and want to send them exactly the right sheet.
- Pick the sheet (e.g. nginx). The address bar now shows
…/tools/cheatsheet/#nginx. - Copy that URL and pass it along — when they open it, your colleague lands straight in the nginx sheet, no searching needed.
- For sheets you use often, a bookmark on the hash link pays off. Next time you jump in with a single click.
Handy: because the hash is set without a new history entry, switching between sheets doesn't clutter your back button.
Example 6: Skim a new tool instead of reading the man page
You hit restic for the first time and want to get a feel for what it does in two minutes.
- Load the restic sheet.
- Leave the search empty and open the
Sectiondropdown — the section titles (e.g.Repository Initialization,Creating Backups,Listing Snapshots,Restoring Data) are a mini table of contents for the topic. - Jump through the sections in order. You see the typical steps in their logical sequence — more compact than any man page, but with real examples.
That's where the sheets shine for learning: they show not every option but the ones you actually need day to day — in a structure you take in at a glance.
Going deeper: the manual for every feature and the data structure, the tips & tricks for knacks and pitfalls. You can try all of it right in the tool.