Every serious profession has its toys. Surgeons have those little claw-machine robots. Astronauts have floating M&Ms. And Linux admins have a cow that talks.
[Cut to a very serious server room. Blinking lights. Hushed tones. A senior engineer leans in to look at a critical alert on screen. Instead, an ASCII cow says "Moo. Have you tried turning it off and on again?" He nods slowly. "...Fair."]
Welcome to the toy box. It holds the classic Linux terminal toys, and hidden in between, like vegetables in a lasagne, six genuinely useful tools you'll still be using next year. I've labelled each one π for toy and π§ for tool, so you can explain your browser history to your manager.
Most of these are in your distro's repos (sudo apt install ... or sudo dnf install ...). Package names are below.
π cowsay: the oracle of the pasture
cowsay "Deploy on Friday? Bold."
cowsay -f tux "I am the captain now"
cowsay -l
-f picks a different character, and -l lists them all. There's a dragon. There's a stegosaurus. There's a cow being abducted by a UFO. Nobody knows why. Nobody asks.
π fortune: wisdom on demand
fortune
fortune | cowsay
Random quotes, jokes and proverbs. Pipe them into cowsay and your cow becomes a philosopher. Put fortune | cowsay in your .bashrc and every new terminal opens with farm-based wisdom. I've done it. I regret nothing.
π§ tldr: man pages for people in a hurry
tldr tar
man tar is a forty-page novel. tldr tar is the five examples you actually wanted, with "extract a .tar.gz" right at the top. It's community-written cheat sheets for thousands of commands. Install tldr (or tealdeer, a fast Rust version), then run tldr --update once to download the pages.
This one's my secret weapon. Never again will I be the person who googles "how to untar" at 2 a.m. I'll be the person who types tldr tar at 2 a.m. Huge difference. Huge.
π sl: the train that punishes typos
You meant to type ls. You typed sl. A steam locomotive chugs across your screen.
sl
sl -F # it flies
sl -a # there's an accident, with little people shouting for help
And here's the evil part: by default, sl ignores Ctrl-C. You will watch the whole train go by. You will think about what you did. You will type more carefully. It's not a toy; it's a lesson with wheels.
shame. For shame.
π§ ncdu: what is eating my disk?
ncdu /
The disk is 98% full and du -sh * is giving you numbers that don't add up. ncdu scans a folder and lets you browse it sorted by size, with arrow keys, drilling straight down to the 40 GB log file nobody rotated. Press d to delete (carefully!). It turns a twenty-minute hunt into a twenty-second one.
π cmatrix: you are now a hacker
cmatrix
Green characters raining down your screen, just like the film. Completely useless. Absolutely mandatory when someone non-technical walks past your desk. Press q to return to reality. Or don't. There is no spoon.
π§ mtr: traceroute and ping had a baby
mtr example.com
"The website is slow" β but where is it slow? mtr shows every network hop between you and the destination, live, with packet loss and latency for each one. You'll see whether the problem is your Wi-Fi, your ISP, or a router somewhere in the middle of the internet having a bad day. Screenshot it and attach it to your ticket. Support teams love it.
π figlet and lolcat: big words, more colours
figlet "DEPLOYED"
figlet "DEPLOYED" | lolcat
fortune | cowsay | lolcat
figlet turns text into giant ASCII-art letters. lolcat paints anything piped into it with a rainbow. Combine them for maximum celebration. That last line is a rainbow cow philosopher, which is either the peak of human achievement or the opposite. You decide.
π§ jq: JSON, tamed
curl -s https://api.github.com/repos/torvalds/linux | jq '.stargazers_count'
echo '{"user":{"name":"Tux"}}' | jq -r '.user.name'
APIs speak JSON, and JSON on one line is unreadable. jq . pretty-prints it in colour. jq '.some.field' pulls out exactly what you want, which makes it perfect in scripts. Once you learn jq, you'll start using it on things that aren't even JSON. Don't. But you'll want to.
π§ pv: is it done yet?
pv big-backup.tar.gz | tar xz
pv disk.img > /dev/sdX # careful: double-check the device!
Some commands work in total silence for forty minutes. pv sits in a pipe and shows a progress bar, speed and time left. That's the difference between "it's probably fine" and "it's 63% done, 4 minutes to go". Your anxiety levels will thank you.
π§π Weather and cheat sheets with plain curl
curl wttr.in
curl wttr.in/Hesperia
curl cheat.sh/rsync
No install required. wttr.in gives you an ASCII-art weather forecast right in the terminal: little clouds, little suns, little rain. cheat.sh gives you quick examples for almost any command or language. Half toy, half tool, all charm.
The toy box, sorted
| Name | Type | What it's for |
|---|---|---|
| cowsay, fortune | π | Bovine wisdom |
| sl | π | Typo punishment |
| cmatrix | π | Looking like a hacker |
| figlet, lolcat | π | Celebration |
| tldr | π§ | Examples instead of man pages |
| ncdu | π§ | Finding what's filling the disk |
| mtr | π§ | Finding where the network's slow |
| jq | π§ | Reading and slicing JSON |
| pv | π§ | Progress bars for silent commands |
| wttr.in, cheat.sh | π§π | Weather and cheat sheets via curl |
Install the tools for your work. Install the toys for your soul. And maybe don't put sl on a shared server. Your colleagues know where you sit.
Linux
More like this
Linux
entr and watch: Make Your Terminal Rerun Things So You Don't Have To
Save, switch window, press up, press Enter, squint. Save, switch window, press up... Stop. entr reruns your command whenever a file changes, and watch reruns it on a timer. Two tiny tools, a thousand saved keystrokes.
Linux
ripgrep: grep, But It Drank Three Espressos and Read Your .gitignore
grep is a legend. It's also happy to search all 80,000 files in node_modules while you wait. ripgrep searches only what matters, very quickly, with sensible defaults. The flags worth knowing, and when old grep still wins.
Linux
The /proc Filesystem: Your Kernel Keeps a Diary and Leaves It Open
Your kernel writes down everything: every process, every open file, how long it's been awake. It keeps it all in /proc, and it never locks the drawer. A tour of the proc filesystem, including how to rescue a file you already deleted.