← All free guides
FREE GUIDE · 100 COMMANDS · 10 CATEGORIES

100 Unusual &
Obscure Linux Commands

A guided tour through the historical nooks and crannies of Unix and Linux. Odd facts, history, and the origins behind commands most people never type.

100
Commands
10
Categories
10
Pages
Free
No sign-up

Inside the guide: all 100 commands

1The Forgotten Corners of Text Processing17 commands

1.1 rev Reverse every character in a line

One of the most minimalist Unix tools around — its entire job is to mirror each line, character by character. Originally a BSD tool that's shipped with Unix since the early 1980s, often used in joke one-liners and for quickly checking palindrome strings. Example: echo "Linux" | rev gives you xuniL.

1.2 tac cat spelled backward (literally)

The name is simply "cat" spelled in reverse, and that's exactly what it does: print a file with its lines in reverse order. One of the clearest examples of Unix developers' fondness for wordplay in command names. Example: tac logfile.txt shows the most recent line first.

1.3 shuf Shuffle the order of lines

Added to GNU coreutils in version 6.0 (August 2006) as an answer to people otherwise cobbling together random line ordering with sort -R or Perl one-liners. Widely used in scripts to, say, draw a random winner from a list. Example: shuf -n 1 participants.txt — pick one random winner.

  • 1.4 nl Number lines with style
  • 1.5 pr Format text for printing on paper
  • 1.6 paste Merge lines side by side
  • 1.7 join SQL joins before SQL was common
  • 1.8 comm Compare two sorted files column by column
  • 1.9 expand / unexpand Convert between tabs and spaces
  • 1.10 column Neat columns out of raw text
  • 1.11 tsort Topological sorting, invented for the linker
  • 1.12 ptx Permuted index (KWIC)
  • 1.13 look Binary-search a sorted word list by prefix
  • 1.14 fold Wrap text at a given width
  • 1.15 fmt Simple text wrapping and paragraph justification
  • 1.16 colcrt Format nroff output for terminals without overstrike
  • 1.17 ul Simulate underlining on terminals that don't support it
2ASCII Art & Terminal Jokes15 commands

2.1 cowsay A cow that says whatever you want

Generates ASCII-art cow art with a speech bubble around any text you give it. It quickly became part of hacker culture after its release and has lived on for decades — named Debian's "package of the day" in 2007. The classic combo: fortune | cowsay.

2.2 cowthink The cow thinks instead of speaking

The same ASCII cow as cowsay, but with a thought bubble instead of a speech bubble — a small but typical example of the Unix philosophy of turning a minor variation into its own separate tool instead of a flag.

2.3 sl A train that punishes you for a typo

Created by Toyoda Masashi in 1993 as a joke aimed at anyone who accidentally types "sl" instead of "ls". Instead of a directory listing, you get a full-scale ASCII steam locomotive chugging across the terminal. The project's own description puts it plainly: "It's just a joke command, and not useful at all."

  • 2.4 figlet Big ASCII-art letters
  • 2.5 toilet figlet's colorful cousin
  • 2.6 banner Enormous letters for line printers
  • 2.7 lolcat Rainbow-colored terminal output
  • 2.8 asciiquarium An aquarium in your terminal
  • 2.9 cmatrix "The Matrix" rain in your terminal
  • 2.10 hollywood Turn your terminal into a hacker movie
  • 2.11 nyancat The rainbow cat, terminal edition
  • 2.12 oneko A cat chases your mouse cursor
  • 2.13 xeyes Eyes that follow your cursor
  • 2.14 aafire Fire made of ASCII characters
  • 2.15 genius A tongue-in-cheek terminal "intelligence test"
3Odd Calculators & Mathematical Curiosities8 commands

3.1 dc The oldest surviving Unix application

Written by Lorinda Cherry and Robert Morris at Bell Labs, and according to Ken Thompson, possibly the very first program run on Bell Labs' new PDP-11 — before even an assembler was available. dc uses reverse Polish notation (RPN) and was written in the language B, before C even existed. Example: echo "2 3 + p" | dc prints 5.

3.2 bc The calculator once built on top of dc

bc ("basic calculator") provided a more readable infix language for math and traditionally compiled its expressions down to dc instructions internally. Modern GNU implementations have flipped that relationship, but the names and the lineage live on side by side.

3.3 units Convert units with a Bell Labs pedigree

A tool for converting between essentially any unit of measurement you can think of — from light-years to hectares, or US gallons to liters. It traces back to Bell Labs and contains a database of thousands of units, including quite a few joke units for the curious.

  • 3.4 factor Prime-factorize any number
  • 3.5 expr Arithmetic and string operations in plain POSIX shell
  • 3.6 seq Generate sequences of numbers
  • 3.7 numfmt Human-readable numbers, back and forth
  • 3.8 primes Crunch out prime numbers at lightning speed with old algorithms
4Communication From a Bygone Era5 commands

4.1 wall Write a message to every logged-in user

Short for "write all." Sends a message to the terminal of every user logged into the same system — a precursor to group chat, from a time when several people often shared a single Unix machine over terminals.

4.2 write Chat directly with another logged-in user

Opens a one-way text channel to a specific logged-in user's terminal, line by line — in practice, one of the earliest forms of instant messaging on Unix systems, long before ICQ or IRC.

4.3 talk / ytalk Real-time chat with a split screen

An improvement on write that split the terminal screen in two so both parties could see each other's text appear in real time, character by character. ytalk later added support for more than two participants at once.

  • 4.4 mesg Control whether others can write to your terminal
  • 4.5 finger Look up information about a user
5Calendars, Time & Waiting8 commands

5.1 cal The terminal's simplest calendar

Prints a text-based calendar for a given month or year right in the terminal — one of the most undramatic yet indispensable tools for a quick date check without leaving the command line.

5.2 ncal The calendar lying on its side

A variant of cal that displays the month sideways instead of upright, and can also show Julian dates and moon phases depending on the flags — a BSD alternative many people never discover exists alongside cal.

5.3 ddate What day is it according to Discordianism?

Converts today's date to the satirical Discordian calendar, invented by Kerry Wendell Thornley and Greg Hill in the 1960s as part of the parody religion Discordianism. One of the clearest examples of Unix developers happily weaving their own absurdist humor into serious toolkits. Example: ddate prints today's date in the Discordian calendar, e.g. "Pungenday, Discord 15, YOLD 3192."

  • 5.4 pom What moon phase is it right now?
  • 5.5 leave Remind yourself to go home
  • 5.6 calendar Personal reminders before Google Calendar existed
  • 5.7 at / batch Schedule a one-off job
  • 5.8 sleep The simplest possible delay, with an odd history
6Archives, Encoding & Binary Archaeology10 commands

6.1 uuencode / uudecode Send binary files over plain-text email

Invented for Unix-to-Unix Copy (UUCP) in the 1980s to send binary files through email systems that could only handle seven-bit text. A precursor to today's base64 encoding, and one of the reasons old Usenet posts sometimes contain cryptic text blocks for attached images.

6.2 cpio The archive format still living inside your initramfs

The name stands for "copy in/out." Even though tar is better known today, it's actually the cpio format that's still used to pack the Linux initramfs image loaded at every system boot.

6.3 ar The archiver behind every static library

Used to create and manipulate .a archive files (static libraries) that the linker merges with your code at compile time — a tool most developers never call directly, but which runs in the background every time a C or C++ project is built.

  • 6.4 od Octal (or hexadecimal) dump of raw data
  • 6.5 xxd A hex dump that can run in reverse
  • 6.6 strings Find readable text hidden inside binary files
  • 6.7 cksum / sum Checksums before md5sum was standard
  • 6.8 bcd Format text as punch cards or Morse code
  • 6.9 morse Translate text to Morse code and back
  • 6.10 split Split a large file into smaller pieces
7System Archaeology — Tools Older Than You Think8 commands

7.1 ed Unix's original text editor

Written by Ken Thompson in the very first version of Unix (1969–1971), long before screen-based editors like vi or emacs existed — ed edits text line by line without ever showing a full screen. Its man page has long carried the half-ironic, half-serious motto that "ed is the standard editor."

7.2 m4 The macro processor behind sendmail and autoconf

A general-purpose text macro processor that's been the hidden engine behind generating sendmail.cf configuration files and GNU Autoconf's configure scripts for decades — most developers never encounter m4 directly, but have very likely run code it generated.

7.3 troff / nroff Typesetting before HTML and LaTeX

Developed at Bell Labs to format text for printing, and used to typeset the entire Unix manual page collection for decades — man pages are technically still written in a troff-like macro language under the hood, even if you rarely see it directly.

  • 7.4 yes One of the simplest programs to ever become legendary
  • 7.5 true / false The two smallest programs you'll ever run
  • 7.6 tee Named after a pipe fitting, not a T-shirt
  • 7.7 nohup Literally "no hang up"
  • 7.8 nice A priority scale from -20 to 19, purely out of history
8Etymological Deep Dives8 commands

8.1 grep The command named after an ed editor command

The name comes from the command sequence g/re/p in the ed editor — "global, regular expression, print." Ken Thompson wrote the first version in a single hour in 1973 after colleague Doug McIlroy asked for a standalone search tool, built on a private utility Thompson already used called "s." The word "grep" is now officially in the Oxford English Dictionary, as both a noun and a verb.

8.2 tar The legacy of magnetic tape

Stands for "tape archive." The format was originally designed specifically to stream data sequentially to and from magnetic tape — which is why classic tar archives still lack a real index and must be read through sequentially, a direct consequence of 1970s tape technology's limitations.

8.3 su Superuser, or substitute user?

Early Unix documentation described su as a way to "become the superuser," while later manuals define it as running a command with a "substitute" user ID. Both interpretations are historically correct depending on which era of Unix documentation you're reading — the command itself already existed in Unix version 1.

  • 8.4 sudo Born at a university, not at Bell Labs
  • 8.5 awk Three surnames in one command name
  • 8.6 sed The editor born from ed's batch mode
  • 8.7 vi The visual part of an older editor
  • 8.8 emacs The editor named after its own macros
9Games & Hidden Easter Eggs13 commands

9.1 bsdgames An entire text-based game collection hiding in the package repository

A package of classic text-based games (including adventure, rogue, worms, and robots) that once shipped by default with many Unix and BSD installations, but these days usually has to be installed manually — a fossil from an era when the terminal doubled as a game console.

9.2 wtf The terminal's own acronym dictionary

Short for exactly what you're thinking: type wtf is NASA and the command looks up and explains the acronym for you. A genuinely useful little reference tool hiding behind a joke of a name, pulled from the same BSD games collection as rogue and worms.

9.3 rain Terminal rain that predates screensavers

Animates concentric "raindrops" spreading across the entire terminal screen in an endless loop — designed as an early form of screensaver for terminals, long before graphical screensavers with flying toasters became commonplace.

  • 9.4 caesar Automatically crack Caesar ciphers with frequency analysis
  • 9.5 rogue The game that spawned an entire genre
  • 9.6 worms Worms eating up your terminal screen
  • 9.7 apt-get moo A cow-secret easter egg in Debian's package manager
  • 9.8 aptitude moo More levels of the same joke
  • 9.9 sudo apt-get moo as "root privileges required for cows"
  • 9.10 emacs -f doctor A terminal psychotherapist
  • 9.11 emacs -f tetris A fully playable Tetris inside your text editor
  • 9.12 yes | rm -i A joke about bypassing safety prompts
  • 9.13 :(){ :|:& };: The fork bomb that became a cultural phenomenon
10Odd Networking & System Diagnostics8 commands

10.1 xargs Invented to work around an old argument limit

Created to solve a concrete historical problem: early Unix shells had a hard limit on how many arguments a command could receive at once. xargs solves that by automatically splitting input into appropriately sized command invocations — a limit that's long since been raised much higher, but the tool lives on as a powerful way to build commands dynamically.

10.2 watch Repeat a command and see the difference

Reruns a command at regular intervals and can even highlight what's changed between runs — a surprisingly simple tool that replaces a lot of homegrown while true; do ...; sleep 1; done loops.

10.3 script / scriptreplay Record and replay an entire terminal session

script records everything that happens in a terminal session to a log file, while scriptreplay can later play back that exact session in real time, including the original's exact timing between keystrokes — a kind of screen recording from an era long before video formats made it unnecessary for most purposes.

  • 10.4 lsof List literally every open file
  • 10.5 arping Ping without needing IP to work yet
  • 10.6 yes > /dev/null An innocent CPU stress test
  • 10.7 tput bel Make the terminal beep via the terminfo database
  • 10.8 factor $(date +%s) Factorize the current Unix time for fun
The full guide, as a PDFEvery command above is written up in full. Free, no email needed.

Related guides: 100 Things You Didn't Know About Linux, 100+ Linux Commands. From the books: The Linux Testament for the whole of Linux. All free guides are in the library.