Table of Contents
Try cal to check a date, rev to flip text, or sl to send a steam locomotive across your terminal. These 18 Linux terminal commands include practical utilities, ASCII animations, and a few programs that open their own windows.

Run the examples as your regular user. If a command is missing, search for its package in your distribution’s package manager. The apt examples below apply to Debian and Ubuntu systems that carry those packages.
1. cal — display a calendar
Run cal for the current month, pass a month and year for a specific page, or pass a year to see all 12 months. On recent Debian releases, look for the ncal package if cal is missing.
cal
cal 2 2030
cal 2030
2. sl — animate a steam locomotive
The command turns a common typo for ls into a train animation. Widen your terminal if the display looks cramped.
sudo apt install sl
sl
3. yes — repeat a line of text
Without arguments, yes prints y repeatedly. Pipe it into head to limit the demo to three lines. If you run yes on its own, press Ctrl+C to stop it.
yes 'hello' | head -n 3For scripts, prefer a documented confirmation flag. Piping repeated answers into an interactive program can approve prompts you did not expect. See the guide to Linux pipes and filters for more examples of passing output between commands.
4. rev — reverse the characters in each line
The order of lines stays the same. Pass a filename to reverse each line in a file and print the result without changing the file.
printf '%sn' Linux example | rev
rev notes.txt
5. aafire — display an ASCII fire
The libaa-bin package provides a text-art fire demo. The display can vary with the terminal or graphics backend.
sudo apt install libaa-bin
aafire
6. espeak — read text aloud
Pass a quoted phrase to the text-to-speech program. You’ll need a working audio output to hear it.
sudo apt install espeak
espeak "Hello from the Linux terminal"
7. figlet — make a banner from text
Use figlet for headings in terminal demos or text files. The optional -f flag selects a font installed with FIGlet.
sudo apt install figlet
figlet "Welcome"
figlet -f small "Welcome"
8. banner — print large block letters
The output style depends on the implementation. Search for sysvbanner on Debian or Ubuntu if your repositories do not offer a package named banner.
banner hello
9. cowsay — give a text-art cow a speech bubble
sudo apt install cowsay
cowsay "Build complete"
If you already have ponysay installed, ponysay "Build complete" provides a pony-themed version.

10. cowthink — use a thought bubble
The cowsay package also includes cowthink.
cowthink "What should I run next?"
11. fortune — print a random saying
Use fortune -s for short entries. A fortune text collection supplies the material, and you can pipe the result into cowsay.
sudo apt install fortune-mod fortunes-min
fortune -s | cowsay
12. oneko — make a cat follow the pointer
oneko draws an animated cat on an X11 desktop. Run it from a graphical session with X11 support, then use Ctrl+C in the launching terminal to stop it.
sudo apt install oneko
oneko
13. cmatrix — make text rain down the terminal
Run cmatrix to fill the terminal with falling characters. Press q to quit.
sudo apt install cmatrix
cmatrix
14. factor — break an integer into prime factors
For 84, the result is 84: 2 2 3 7. Pass several integers to factor them in one run.
factor 84 97
15. xeyes — show a pair of pointer-tracking eyes
xeyes opens an X11 window. Use -geometry to set its size, and close the window when done. Under a Wayland session, tracking may be limited to X11 applications.
sudo apt install x11-apps
xeyes -geometry 160x80
16. asciiquarium — run a text-mode aquarium
If your distribution offers asciiquarium, install it from your package manager. Run the command to animate fish and plants in the terminal, and press Ctrl+C to exit.
asciiquarium
17. rig — generate sample contact data for tests
Use rig to populate local tests with synthetic names and address-like values. Keep generated addresses in test environments and avoid using them for deliveries or contacting people.
sudo apt install rig
rig
18. telnet — connect to a text-only public demo
Some public services offer plain-text demos through a Telnet client. For example, if the MapSCII demo is reachable, this command opens its terminal map. Telnet sends data without encryption, so keep passwords and personal data out of the session.
telnet mapscii.meTo disconnect, press Ctrl+] and enter quit at the Telnet prompt.

To build on the yes and fortune examples, try the guided exercise on command-line input, output, and pipelines.
Reader Comments 0
Sign in with email or Google to join the discussion.