Fundamentals 6 min read

A Collection of Fun Linux Commands with Installation and Usage Instructions

This article introduces a variety of interesting Linux commands—such as rev, asciiview, sl, aafire, cmatrix, factor, oneko, boxes, xeyes, pv, yes, bastet, ninvaders, pacman4console, and greed—explaining what they do, how to install them via apt, and providing example usage commands.

DevOps
DevOps
DevOps
A Collection of Fun Linux Commands with Installation and Usage Instructions

Linux offers many entertaining and useful command‑line utilities. Below is a curated list of commands, each with a brief description, installation command using sudo apt-get install (or apt install), and a sample usage snippet.

rev : Reverses each line of input. Install with sudo apt-get install rev (often pre‑installed). Example: echo shiyanlou | rev outputs ulanyihs.

asciiview : Displays images as ASCII art. Install with sudo apt-get install aview and sudo apt-get install imagemagick. Run with asciiview shiyanlou.png -driver curses.

sl : Shows an animated train moving across the screen. Install with sudo apt-get install sl and run with sl.

aafire : Renders a fire effect in the terminal. Install with sudo apt-get install libaa-bin and run with aafire.

cmatrix : Displays a "Matrix"‑style falling characters animation. Install with sudo apt-get install cmatrix and start with cmatrix (stop with Ctrl+C).

factor : Performs prime factorization of numbers. Install with sudo apt-get install factor and run, e.g., factor 60.

oneko : Shows a cat that chases the mouse pointer. Install with sudo apt-get install oneko and start with oneko (stop with Ctrl+C).

boxes : Draws ASCII boxes around text. Install with sudo apt-get install boxes. Example: echo "gaoxiaoyunwei" | boxes -d do.

xeyes : Displays a pair of eyes that follow the cursor. Install with sudo apt-get install xeyes and run with xeyes.

pv : Shows a progress bar while piping data, useful for simulating typewriter output. Install with sudo apt-get install pv. Example: echo "welcome to shiyanlou" | pv -qL 10.

yes : Repeatedly outputs a string until stopped. No installation needed. Example: yes hello,world (stop with Ctrl+C).

bastet : A Tetris clone for the terminal. Install with sudo apt-get install bastet and run with bastet.

ninvaders : A Space Invaders‑style game. Install with sudo apt install ninvaders and start with ninvaders. Use arrow keys to move and space to shoot.

pacman4console : Classic Pac‑Man game for the console. Install with sudo apt install pacman4console and launch with pacman4console. Control with arrow keys.

greed : A puzzle game where a flashing "@" moves according to surrounding numbers. Install with sudo apt install greed and play with greed. Use arrow keys for movement.

These commands provide both practical utilities and entertaining ways to explore the Linux terminal, making it a richer environment for learning and daily use.

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-lineTutorialShell UtilitiesTerminal Games
DevOps
Written by

DevOps

Share premium content and events on trends, applications, and practices in development efficiency, AI and related technologies. The IDCF International DevOps Coach Federation trains end‑to‑end development‑efficiency talent, linking high‑performance organizations and individuals to achieve excellence.

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.