
Linux easter eggs are hidden commands, animations, and jokes built into common tools like APT, Vim, cowsay, and sl, discoverable entirely from the terminal. They ship with Ubuntu and Debian and install via a single apt command. This guide covers the top 10, including the fortune, cowsay, lolcat pipeline, the aptitude moo escalation, ASCII games like Bastet, and more, with exact commands for each.
What Are Linux Easter Eggs?
Linux has a reputation for being serious, powerful, and production-grade, but its community has always had a sharp sense of humor. Hidden inside the command line are dozens of jokes, animations, games, and absurd surprises that developers have quietly embedded over the decades. These are Linux easter eggs, and they are worth knowing.
Linux easter eggs are hidden commands, behaviors, or messages built into software packages, package managers, text editors, and terminal utilities. Unlike the accidental kind, these are deliberate jokes left by developers, sometimes as cultural references, sometimes as nods to internet humor, and sometimes just because they could. Easter egg commands range from a talking ASCII cow to a full steam locomotive animation to games hidden inside package managers. Most work out of the box or after a quick apt install, and they run on both Ubuntu and Debian without any configuration beyond what this guide covers.
The Fortune Command – Random Quotes in Your Terminal
The fortune command is one of the oldest linux fortune tools in Unix history. It prints a random quote, joke, or piece of trivia to stdout each time it runs, making it a classic random quotes terminal trick that predates most modern distros.
To install it:
On Debian, the binary lives in /usr/games/ rather than a standard PATH directory, so you need an alias to call it directly. Open your shell config:
nano ~/.bashrc Add this line at the bottom:
alias fortune="/usr/games/fortune" Save with Ctrl+O, then exit with Ctrl+X. Reload the file:
source ~/.bashrc Now run:
fortune Each execution drops a different quote. Pair it with your .bashrc to get a random greeting every time you open a terminal session.
Cowsay – The ASCII Talking Cow
Cowsay is the archetypal linux cow command. It takes any string and renders it inside a speech bubble, delivered by an ASCII cow. Install it with:
apt install cowsay Then run:
cowsay "Hello, Linux!" The output is a line-drawn cow holding your message in a bubble above its head. Simple, absurd, and immediately recognizable to anyone who has spent time in Linux terminal culture.
Cowsay Characters and Custom Cow Files
Cowsay ships with a set of alternative characters beyond the default cow. These cowsay characters are stored as .cow template files, and you switch between them using the -f flag. To use the Tux penguin:
cowsay -f tux "Greetings from Linux!" To list all available cow files on your system:
ls /usr/share/cowsay/cows/ Common options include dragon, ghostbusters, stegosaurus, and the classic default cow. You can also write your own .cow files and drop them into that directory. The cowsay -f flag accepts either a name from that folder or a full path to a custom file.
Combining Fortune and Cowsay with Lolcat
The fortune cowsay pipeline is a terminal classic. It chains the random quote generator directly into the talking cow:
fortune | cowsay For the full effect, add lolcat, which colorizes terminal output in a rainbow gradient. First install it:
apt install lolcat Then run the three-way pipeline:
fortune | cowsay | lolcat The result is a rainbow-colored ASCII cow delivering a random philosophical one-liner or programmer joke. It sounds ridiculous because it is, but fortune cowsay lolcat has become a genuine piece of Linux terminal culture.
APT Moo – Super Cow Powers in the Package Manager
If you have ever read the output of apt-get carefully, you may have noticed the line “apt-get has super cow powers.” This is not just flavor text. Run:
apt moo APT responds with an ASCII cow and a message. Keep adding the word moo to the command to unlock a hidden escalation of absurdity. Try apt-get moo as well, since both the apt and apt-get frontends support the easter egg. This is one of the most enduring ubuntu easter eggs, present across Debian-based systems for well over a decade.
Aptitude Moo – The Hidden Escalation
The aptitude package manager takes the moo joke further. Install it first if needed:
apt install aptitude Then run:
aptitude moo Aptitude will insist there are no easter eggs here. Add -v flags to push back:
aptitude -v moo aptitude -vv moo aptitude -vvv moo Keep escalating. The aptitude easter egg responds to each level of verbosity with increasingly stubborn and creative denial before eventually caving. The full aptitude -v moo sequence is one of the best command-line comedy routines on any operating system.
The SL Command – A Steam Locomotive in Your Terminal
The sl command was originally created as a punishment for typing sl instead of ls out of habit. Install it:
apt install sl On Ubuntu, run it directly:
sl On Debian, add an alias if needed:
alias sl="/usr/games/sl" What follows is a fully animated ASCII steam locomotive that chugs from right to left across your terminal. The animation cannot be interrupted with Ctrl+C by default, which was the original point. The sl linux command supports flags: sl -a adds passengers, sl -l shortens the train, and sl -F makes it fly. It is a joke about typos that became a piece of Unix history.
Vim :help 42 – The Answer to Life, the Universe, and Everything
Open Vim and run:
:help 42 Vim’s help system will display a page that addresses the meaning of life directly. The vim easter egg references Douglas Adams’ The Hitchhiker’s Guide to the Galaxy, in which 42 is given as the answer to the ultimate question of life, the universe, and everything. The page is brief, deadpan, and perfectly in keeping with Vim’s no-nonsense documentation style. You can also trigger it from the command line:
vim +":help 42" The help 42 entry has been in Vim’s documentation for years and remains one of the most well-known vim easter eggs in the developer community.
CMatrix – The Matrix Digital Rain Effect
CMatrix simulates the falling green character streams from the film The Matrix. It is not hidden inside another tool but is its own standalone linux matrix effect package. Install it:
apt install cmatrix Run it with:
cmatrix The terminal fills with cascading columns of randomized characters in green. Use the -b flag for bold characters, -C to change the color (for example, cmatrix -C red), and -s for screensaver mode. Press q to exit. The cmatrix command is technically more of a fun terminal tool than a hidden egg, but it belongs in any list of linux matrix effect utilities and is a guaranteed crowd-pleaser on any workstation or server display.
Hidden Terminal Games – Bastet, Snake, and More
Several classic games ship as installable terminal packages on Debian-based systems. These linux terminal games are playable entirely in the shell, no desktop environment required.
Bastet – Bastard Tetris in the Terminal
Bastet is a terminal tetris clone with a twist: it is algorithmically designed to give you the worst possible piece at every turn. The name is a portmanteau of “bastard” and “Tetris,” and it earns that name. Install it:
apt install bastet On Ubuntu, run:
bastet On Debian, set up the alias:
alias bastet="/usr/games/bastet" Then reload your shell and run bastet. Controls follow standard Tetris conventions. The bastet linux experience is genuinely brutal because the engine actively calculates which piece creates the worst possible board state and delivers it every time. It is not for the faint-hearted.
Robot Finds Kitten and Other CLI Games
Robotfindskitten is a minimalist ASCII game with a simple premise: you are a robot, and you need to find the kitten. Every other object on screen is a red herring described with an absurd line of flavor text. Install it:
apt install robotfindskitten Run it with:
robotfindskitten Navigate with the arrow keys. Most items you examine are things like “a lint roller” or “an unreasonable opinion about databases” rather than the kitten. Finding the actual kitten ends the game with a brief celebration. Among cli games linux, robotfindskitten is one of the most charming for its sheer commitment to its ridiculous premise.
The bsdgames package also contains a large collection of classic terminal games including snake, which you can install in one command:
apt install bsdgames Then run snake (or set up the alias /usr/games/snake on Debian).
ASCII Art Tools – Banner, Figlet, and Toilet
Several packages turn text into large-format ascii art linux output directly in the terminal.
The banner command renders text in a chunky block style:
apt install sysvbanner banner "Contabo" Figlet is more flexible and supports a wide range of font styles. Install it with:
apt install figlet Then run:
figlet "Linux" Toilet is a figlet alternative that supports color output and additional rendering modes. Install and run:
apt install toilet toilet -f mono12 -F metal "Linux" All three are useful beyond novelty. Figlet and toilet see real use in shell script headers, motd banners, and ASCII-art-heavy documentation. The banner command linux tool is the most basic of the three but works immediately out of the box.
The Rev Command – Reversing Text in the Terminal
The rev command is one of the most minimal easter eggs in the Linux toolkit. It reverses the character order of any input line. No installation needed:
echo "Linux" | rev Output: xuniL
The rev linux utility is part of the util-linux package and is available on virtually every Linux system by default. It has legitimate uses in text processing pipelines, but discovering it for the first time as a reverse text terminal trick is a small moment of delight. Try piping longer strings through it, or feed it a file with rev filename to reverse every line.
More Fun Linux Terminal Easter Eggs and Commands
Beyond the major entries above, a handful of additional tools round out any list of fun linux commands and linux terminal tricks worth knowing.
The BB Command – ASCII Art Demo
The bb command is a standalone demo from the aalib library, a library for rendering graphics in ASCII art. It plays back a short prerendered animation entirely in text characters, complete with a soundtrack if your terminal supports audio output. Install it:
apt install bb Run it with:
bb The bb linux demo dates back to the mid-1990s and is a genuine piece of computing history. Watching a detailed animation rendered in monochrome ASCII characters is a reminder of what developers could accomplish under extreme hardware constraints.
Lolcat – Rainbow Colors in Your Terminal
Lolcat adds rainbow color gradients to any terminal output by piping text through it. It was already mentioned as part of the fortune cowsay lolcat chain, but it works with any command. Install it:
apt install lolcat Examples:
ls | lolcat cat /etc/os-release | lolcat The lolcat linux tool has a few flags worth knowing: –animate (-a) adds an animation effect, –speed (-s) controls the animation rate, and –freq (-F) adjusts how tightly the color cycles. It is superficial by design, but adding lolcat to system output commands has a way of making even mundane tasks feel slightly more festive.
Asciiquarium – A Virtual Aquarium in the Terminal
Asciiquarium renders an animated underwater scene in your terminal, complete with fish, a submarine, a sea monster, and other creatures drifting across the screen. It is one of the more visually elaborate terminal easter eggs available. Install it:
apt install asciiquarium Run it with:
asciiquarium The linux aquarium simulation runs indefinitely and is often used as a screensaver on headless servers or workstations left unattended. Press q or Ctrl+C to exit. The terminal aquarium effect works in any terminal emulator that supports color output.
How to Install Linux Easter Egg Commands on Ubuntu and Debian
Most of the commands covered in this guide install through the standard APT package manager with no additional configuration needed on Ubuntu. On Debian, several binaries land in /usr/games/ rather than /usr/bin/ or /usr/local/bin/, which means they will not be found by the shell without a PATH update or a manual alias.
The fastest approach on Debian is to add /usr/games to your PATH permanently. Open your shell config:
nano ~/.bashrc Add this line:
export PATH="$PATH:/usr/games" Save, exit, and reload:
source ~/.bashrcAfter that, all games and easter egg utilities installed through APT will be callable directly by name without needing individual aliases. This covers fortune, sl, bastet, snake, cowsay, and every other package that installs to /usr/games by default.
To install all the tools covered in this guide at once, run:
apt install fortune-mod cowsay lolcat sl cmatrix figlet toilet sysvbanner bastet bsdgames robotfindskitten asciiquarium bb
If you are running a minimal server image, some of these may pull in a handful of lightweight dependencies, but none require a desktop environment or any graphical stack.
Conclusion – Explore the Playful Side of Linux
Linux easter eggs are a window into the culture that built the operating system. The developers who embedded a cow in APT, wrote a passive-aggressive reply to aptitude moo, or made a Vim help page about Douglas Adams were not wasting time. They were expressing something genuine about what it feels like to work in an ecosystem built on curiosity, humor, and craft. Fun linux commands and linux terminal tricks like these have been passed down through distros for decades, and they remain fully functional in current releases. Try a few, chain some together, and see what else turns up when you start looking.
Frequently Asked Questions
The most famous linux easter egg is probably apt moo, or the cowsay command itself. Both have been widely covered in Linux documentation, blog posts, and talks. The aptitude moo escalation sequence is also frequently cited as one of the most popular linux easter egg interactions because of how it responds to repeated commands with increasingly elaborate denials. Among editor easter eggs, :help 42 in Vim is the most well-known, largely due to The Hitchhiker’s Guide to the Galaxy reference.
Install cowsay with apt install cowsay, then run cowsay followed by any message in quotes. For example: cowsay “Hello, world!” To use a different character, add the -f flag followed by a .cow file name, such as cowsay -f tux “Greetings!”. List available cow files with ls /usr/share/cowsay/cows/. The cowsay command linux users pipe most often is fortune | cowsay, which feeds a random quote directly into the cow’s speech bubble.
Yes, apt moo still works in 2026 on current Ubuntu and Debian releases. The apt easter egg has been maintained across APT versions and is present in the apt and apt-get frontends on all major Debian-based distributions. The aptitude escalation sequence also remains functional as long as the aptitude package is installed.
Running :help 42 in Vim opens a help page that responds to the “meaning of life” question. The help 42 vim entry is a direct reference to The Hitchhiker’s Guide to the Galaxy by Douglas Adams, where the supercomputer Deep Thought produces 42 as the answer to the ultimate question. The vim 42 meaning is entirely humorous and has no bearing on Vim’s actual functionality. It is one of the few easter eggs embedded directly in official documentation rather than in executable behavior.
Most of the tools covered here are available as packages on any distribution that uses APT, which covers linux easter eggs ubuntu, linux easter eggs debian, and derivatives like Linux Mint, Pop!_OS, and Raspberry Pi OS. On RPM-based systems such as Fedora or RHEL, equivalent packages exist in the standard or EPEL repositories under the same names, though /usr/games path aliasing may not apply. Easter eggs embedded directly in software like Vim or APT are available on all distros that ship those tools, regardless of the package manager. Not all easter eggs are universal across all distros, but the most popular ones are broadly available.