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.
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 imagemagickThen run:
asciiview shiyanlou.png -driver curses3. sl command
Displays an animated train moving across the screen.
sudo apt-get install sl sl4. aafire command
Shows a fire effect in the terminal.
sudo apt-get install libaa-bin aafire5. cmatrix command
Displays the classic Matrix rain effect.
sudo apt-get install cmatrix cmatrixPress Ctrl+C to stop.
6. factor command
Factorizes numbers, useful for simple math problems.
factor 607. oneko command
Shows a cat that follows the mouse cursor.
sudo apt-get install oneko $onekoPress Ctrl+C to exit.
8. boxes command
Wraps text or code with ASCII art boxes.
sudo apt-get install boxes echo "gaoxiaoyunwei" | boxesOr use a specific style:
echo "gaoxiaoyunwei" | boxes -d dog9. xeyes command
Displays a pair of eyes that follow the mouse pointer.
sudo apt-get install xeyes xeyes10. 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 1011. yes command
Continuously outputs a specified string until interrupted.
yes hello,world12. bastet command
Play Tetris in the terminal.
sudo apt-get install bastet13. ninvaders command
Space Invaders game for the command line.
sudo apt install ninvaders ninvadersUse arrow keys to move and space to shoot.
14. pacman4console command
Classic Pac-Man game in the console.
sudo apt install pacman4console pacman4console15. greed command
Number‑based movement game where you control a flashing "@".
sudo apt install greed greedUse arrow keys to move; the game ends when no moves are possible.
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.
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.
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.
