10 Fun Linux Commands to Liven Up Your Terminal
This guide introduces ten entertaining Linux command‑line tools—such as sl, fortune, cowsay, cmatrix, figlet, toilet, oneko, xeyes, yes, and shred—showing how to install them on Ubuntu, use their options, and combine them for playful terminal tricks.
1. sl command
The sl program displays an animated train moving across the screen, mimicking a classic joke for users who mistype ls. Install it with: sudo apt-get install sl Run it simply by typing: sl Common options include -a (accident), -l (little one), -F (fly), and -e (allow interrupt with Ctrl+C).
You can alias ls to sl for a prank:
alias ls=sl2. fortune command
fortuneprints a random short quote, joke, or proverb. Install it (including Chinese quotes) with: sudo apt-get install fortune fortune-zh Run it:
fortune3. cowsay command
cowsayrenders a message inside an ASCII animal speech bubble. Install it with: sudo apt-get install cowsay Example usage:
cowsay "I am not a cow, hahaha"List available animal figures with cowsay -l and select one with -f:
cowsay -f tux "坑爹啊"You can pipe fortune into cowsay for a whimsical quote:
fortune | cowsay4. cmatrix command
cmatrixcreates a "Matrix"‑style falling‑character animation in the terminal. Install and run it with:
sudo apt-get install cmatrix
cmatrix5. figlet and toilet commands
These utilities generate large ASCII art text. Install them:
sudo apt-get install figlet
sudo apt-get install toiletExamples:
figlet "fuck you !"
toilet "i love you"toiletalso supports colors and fonts, e.g.:
toilet -f mono12 -F gay "a girl"6. oneko command
onekodisplays a cartoon cat that chases the mouse pointer. Install and run:
sudo apt-get install oneko
onekoTerminate with Ctrl+C.
7. xeyes command
xeyesshows a pair of eyes that follow the mouse cursor. Install the same way as previous commands and run xeyes. Example screenshot:
8. yes command
yesrepeatedly outputs a string until interrupted (Ctrl+C). Example:
yes "我很NB"9. cal 9 1752 command
The cal utility prints calendars. The option 9 1752 displays the historically odd September 1752 calendar when the Gregorian reform omitted days.
10. shred command
shredoverwrites a file repeatedly to make data recovery difficult, useful for securely deleting sensitive files such as media or seed torrents.
11. factor command
factorperforms integer factorization, a simple utility that even elementary school students can experiment with.
12. aptitude moo variations
The aptitude package manager includes a hidden Easter egg. Running any of the following commands displays an ASCII cow:
aptitude moo aptitude -v moo aptitude -vv moo aptitude -vvv moo aptitude -vvvv moo aptitude -vvvvv moo aptitude -vvvvvv moo aptitude -vvvvvvv mooThese fun commands can be discovered via the manual pages and customized for further terminal pranks.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
ITPUB
Official ITPUB account sharing technical insights, community news, and exciting events.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
