Discover 15 Fun Linux Commands That Turn Your Terminal Into a Playground
This guide introduces fifteen entertaining Linux commands—from reversing strings with rev and viewing images with asciiview to playing classic games like ninvaders and pacman4console—providing installation instructions, example usages, and screenshots that showcase each tool’s quirky behavior for both learning and amusement.
Linux offers many interesting commands that are simple to try and can add fun to your terminal.
1. rev
Reverses each input line character by character.
<code>rev</code>Example: input
shiyanlouproduces
uolonayhs.
2. asciiview
Install
aviewand
imagemagick, then view images in the terminal.
<code>sudo apt-get install aview</code> <code>sudo apt-get install imagemagick</code> <code>asciiview shiyanlou.png -driver curses</code>3. sl
Displays an animated train moving across the screen.
<code>sudo apt-get install sl</code> <code>sl</code>4. aafire
Creates a Matrix‑style fire animation in the terminal.
<code>sudo apt-get install libaa-bin</code> <code>aafire</code>5. cmatrix
Displays the classic Matrix falling characters effect.
<code>sudo apt-get install cmatrix</code> <code>cmatrix</code>Press
Ctrl+Cto stop.
6. factor
Factors an integer, useful for quick math checks.
<code>factor 60</code>7. oneko
Shows a cat that follows your mouse pointer.
<code>sudo apt-get install oneko</code> <code>oneko</code>Press
Ctrl+Cto exit.
8. boxes
Wraps text or code in ASCII art boxes.
<code>sudo apt-get install boxes</code> <code>echo "gaoxiaoyunwei" | boxes</code>Or use a predefined style:
<code>echo "gaoxiaoyunwei" | boxes -d dog</code>9. xeyes
Displays a pair of eyes that follow the cursor.
<code>sudo apt-get install xeyes</code> <code>xeyes</code>10. pv
Creates a typewriter‑like effect for text streams.
<code>sudo apt-get install pv</code> <code>echo "welcome to shiyanlou, you can learn DevOps by doing" | pv -qL 10</code>11. yes
Continuously outputs a specified string until interrupted.
<code>yes hello,world</code>12. bastet
Play Tetris in the terminal.
<code>sudo apt-get install bastet</code>13. ninvaders
Space Invaders clone for the command line.
<code>sudo apt install ninvaders</code> <code>ninvaders</code>Use arrow keys to move and space to shoot.
14. pacman4console
Classic Pac‑Man game in the console.
<code>sudo apt install pacman4console</code> <code>pacman4console</code>15. greed
Navigate a numeric maze where your position is shown by a flashing “@”.
<code>sudo apt install greed</code> <code>greed</code>Control with the arrow keys.
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.