Show HN: Greppers – fast CLI cheat sheet with instant copy and shareable search
65 points| shellsteady | 5 months ago |greppers.com
Examples:
• grep errors → https://www.greppers.com/?q=grep%20error%20logs
• list open ports (macOS) → https://www.greppers.com/?q=list%20open%20ports
• show git branch graph → https://www.greppers.com/?q=git%20graph
• tail with colors → https://www.greppers.com/?q=tail%20colors
Tech notes: static site on Netlify, no build system. Data is a JSON file; favorites persist via localStorage. Search is client-side; queries are linkable with ?q= and you can filter favorites with fav=1. Dangerous commands show a confirm before copying. Headers (HSTS, nosniff) + sitemap/robots are set.
Planned next: more commands/recipes (docker, systemctl, networking), offline PWA, and a simple import/export for favorites.
Suggest a missing command: https://www.greppers.com/submit.html
I’m looking for gaps and better real-world examples. Feedback welcome.
ProofHouse|5 months ago
henrebotha|5 months ago
shellsteady|5 months ago
pluc|5 months ago
wingmanjd|5 months ago
On FF Linux, when I click on a copy command (e.g. `Grep errors in syslog`, the clipboard only contains "grep ", including those two spaces.
shellsteady|5 months ago
If it still reproduces for them, we’ll grab their FF version and distro, but this should squash the “grep ” symptom.
defrost|5 months ago
Simon Sheppard's CLI Command notes and forums* - https://ss64.com/
* Now regrettably read-only thanks to the UK safety Act: https://ss64.org/viewtopic.php?f=4&t=587
shellsteady|5 months ago
I’m adding lightweight “More info” links on each card (SS64, man7, tldr) so folks can jump from the quick copy to the deep docs. If you’ve got specific SS64 pages you consider must-reads for certain commands, drop them and I’ll wire those in first.
coxmi|5 months ago
The most memorable args for me are `-mrchivas`, because together they sound somewhat like a name (“Mister Chivas”)
(I drop the -a depending on whether archive is needed, Mr. Chivs sounds fun too)
shellsteady|5 months ago
Paste-ready reply for HN
Good call. I just added a handful of rsync recipes: • rsync -avh --progress SRC/ DEST/ (archive, human sizes, progress) • rsync -azP -e ssh SRC/ user@host:/path/ (SSH, compress, resume) • rsync -avh --delete SRC/ DEST/ (mirror with delete — ) • rsync -avh --checksum SRC/ DEST/ (checksum verify; slower) • rsync -avh --exclude='.git' --exclude='node_modules' SRC/ DEST/ (exclude patterns) • rsync -azP --bwlimit=2m -e ssh … (bandwidth limit) • bonus mnemonic: rsync -mrchivas … → m prune-empty, r recursive, c checksum, h human, i itemize, v verbose, a archive, s safe (note: -a already implies -r, and -c slows it down)
If there’s a specific rsync you reach for, drop it and I’ll add it too.
wangbang|5 months ago
mxuribe|5 months ago
One small nit: Recipes and Favorites seems to not work (at all)...on firefox 142.0.1 nor ungoogled chromium version 139.0.7258.154 - both via fedora 41. ;-)
sharts|5 months ago
I wonder if there is any kind of tool out there that might provide some fuzzy auto-suggestions in shell from a variety of sources like this.
unknown|5 months ago
[deleted]
crashabr|5 months ago
shellsteady|5 months ago
rancar2|5 months ago
kiitos|5 months ago
shellsteady|5 months ago
They’re complementary: tldr is a great reference with multiple examples per command; Greppers is for the 2–3 commands you re-google at 1am with the exact flags you want to copy. If there’s a command where the tldr example is clearly better, I’ll happily mirror it or link out.
shellsteady|5 months ago
Planned next: more commands/recipes (docker, systemctl, networking), offline PWA, and a simple import/export for favorites.
If something’s obviously missing, drop it here or via the form: https://www.greppers.com/submit.html
dang|5 months ago
Btw - if you're replying to other commenters, can you do so by clicking the 'reply' link at the end of their comment? That will place your response underneath the comment you're referencing, which will make the thread much more readable.
Currently, your comments are all going to the top level, where it's hard to connect them with the other posts you're replying to. I'm going to try to move them manually to the right places, but it's not clear what those are!
shellsteady|5 months ago
[deleted]