Table of Contents
Ubuntu's command line has a playful side: a mistyped listing command can launch a train, and package managers can reveal hidden cow jokes. The examples below explain what each command does and which packages it needs.
Open Terminal with Ctrl-Alt-T on a typical Ubuntu desktop. Run each example separately. Installation commands need administrator rights; the animations and cow commands do not. If a package is unavailable, check your release's configured repositories rather than downloading an unknown script.
1. Run a steam train with sl
ls lists directory contents. sl is a separate joke program whose name stands for Steam Locomotive. Install it if needed, then run it:
sudo apt install sl
sl
The train moves across the terminal and finishes on its own. Try these options one at a time:
sl -l
sl -F
sl -a-luses a smaller train.-Fmakes it fly.-aadds passengers calling for help.
It does not replace ls or list files. The original sl project explains the joke. For actual navigation and file operations, see basic Linux commands.
2. Reveal APT's cow
apt moo
On versions that include the Easter egg, this prints a cow drawn from text characters. It does not install, update, or remove anything, and it does not need sudo.
You can inspect APT's ordinary help with apt --help. The hidden joke and wording may differ by version. APT is the package-management tool; moo is simply its playful extra.
3. Ask Aptitude more persistently
Aptitude is another interface to Debian-style package management. It may not be installed by default:
sudo apt install aptitude
aptitude moo
Its first answer is deliberately unhelpful. Increase verbosity to see the exchange develop:
aptitude -v moo
aptitude -vv moo
aptitude -vvv moo
aptitude -vvvvvv mooThe repeated v characters belong to the option; they do not count your previous attempts. You can run the commands independently. Outputs vary with the version, so enjoy the sequence without expecting one exact final message.
If you are new to installing packages, the guide to Ubuntu package installation explains related tools. For these examples, use the packages in your configured Ubuntu repositories.
4. Inspect sudo's optional insult messages
Some sudo builds include humorous messages for an incorrect password. Enabling them changes the message, not the authentication requirement. This example edits system configuration, so it is optional and should only be tried on a computer you administer.
Use the dedicated editor, which checks sudoers syntax:
sudo visudo
Add this on a separate line in the Defaults section without changing the existing access rules:
Defaults insultsA space between the words is sufficient; a Tab key is not required. The editor is not necessarily nano. If it is nano, save with Ctrl-O, confirm the filename, and exit with Ctrl-X. If visudo reports an error, correct or discard the change rather than forcing a broken configuration to save.

The message can appear on a later incorrect password entry when authentication is required. Reopening Terminal is not the key requirement. To undo the change, remove the added line with visudo. A build compiled without insult support will not provide this feature even if the setting is present; see the sudo project's build options.
5. Format an Nmap scan as leetspeak
Nmap includes a joke output format called “script kiddie” output. Try it against your own computer's loopback address:
sudo apt install nmap
nmap -oS - 127.0.0.1
-oS selects the format, and the following hyphen sends it to standard output. The uppercase S matters. This changes how results are written, not how the scan works.
The screenshot illustrates the output style; its target and reported ports need not match your machine. Only scan systems you own or have explicit permission to test. Nmap's output documentation describes this format and the normal formats better suited to real troubleshooting.
Reader Comments 0
Sign in with email or Google to join the discussion.