Operations 7 min read

15 Fun Linux Commands to Play and Learn in Your Terminal

Explore a collection of entertaining Linux terminal commands—from reversing strings with rev to playing classic games like Pacman—complete with installation steps, usage examples, and visual demonstrations to enrich your command-line skills and boost.

Efficient Ops
Efficient Ops
Efficient Ops
15 Fun Linux Commands to Play and Learn in Your Terminal

1. rev command

Reverses each input line. rev Example: input shiyanlou produces ulanyihs.

2. asciiview command

Install aview and imagemagick first.

sudo apt-get install aview
sudo apt-get install imagemagick

Then run:

asciiview shiyanlou.png -driver curses

3. sl command

Displays an animated train moving across the screen.

sudo apt-get install sl
sl

4. aafire command

Shows a fire effect in the terminal.

sudo apt-get install libaa-bin
aafire

5. cmatrix command

Displays the classic Matrix rain effect.

sudo apt-get install cmatrix
cmatrix

Press Ctrl+C to stop.

6. factor command

Factorizes numbers, useful for simple math problems.

factor 60

7. oneko command

Shows a cat that follows the mouse cursor.

sudo apt-get install oneko
$oneko

Press Ctrl+C to exit.

8. boxes command

Wraps text or code with ASCII art boxes.

sudo apt-get install boxes
echo "gaoxiaoyunwei" | boxes

Or use a specific style:

echo "gaoxiaoyunwei" | boxes -d dog

9. xeyes command

Displays a pair of eyes that follow the mouse pointer.

sudo apt-get install xeyes
xeyes

10. pv command

Shows a progress bar effect similar to subtitles appearing character by character.

sudo apt-get install pv
echo "welcome to shiyanlou, you can learn DevOps by doing" | pv -qL 10

11. yes command

Continuously outputs a specified string until interrupted.

yes hello,world

12. bastet command

Play Tetris in the terminal.

sudo apt-get install bastet

13. ninvaders command

Space Invaders game for the command line.

sudo apt install ninvaders
ninvaders

Use arrow keys to move and space to shoot.

14. pacman4console command

Classic Pac-Man game in the console.

sudo apt install pacman4console
pacman4console

15. greed command

Number‑based movement game where you control a flashing "@".

sudo apt install greed
greed

Use arrow keys to move; the game ends when no moves are possible.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Linuxcommand-lineTutorialUbuntuFun Commands
Efficient Ops
Written by

Efficient Ops

This public account is maintained by Xiaotianguo and friends, regularly publishing widely-read original technical articles. We focus on operations transformation and accompany you throughout your operations career, growing together happily.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.