Linux Terminal Toys (and the Surprisingly Useful Tools Hiding Among Them)

A talking cow, a train that punishes typos, the Matrix in your terminal, and hidden among them, six genuinely useful tools you'll keep long after the novelty wears off. A toy box for Linux nerds.

Tux Harlow

5 min read

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

Bash
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

Bash
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

Bash
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.

Bash
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?

Bash
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

Bash
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

Bash
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

Bash
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

Bash
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?

Bash
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

Bash
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

NameTypeWhat 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.