Fun in Terminal

Working in terminal was always tons of fun for GNU/Linux world’s geeks and this fun will be more when you gonna have some funny games and commands too, in this article we gonna introduce some games and commands that you can have them in your terminal in free times!

BSDGames package let you to have some Terminal games such as the famous Worm game, Backgammon, Gomoku and etc, for installing this package use this command in Ubuntu/Debian:

sudo apt update && sudo apt install bsdgames

If your using Arch Linux/Manjaro use this command:

sudo pacman -S bsdgames

After installing that package by entering name of your game in terminal you can play it, for example just enter


in terminal and start playing the game 😀


In worm game you should control the snake with arrow keys and catch the worms which are those numbers on screen and get more score.

Another really famous games that most of the people plays is backgammon, for playing this game enter


in terminal then it asks you to read the games rule so you’ll know how to play in another guess if you never played backgammon first search it in INTERNET then starting playing it in Terminal.


Another fun games you have in Terminal is Gomoku, in this game you choose to play with black nuts or white one and you also have an 19*19 play screen and the winner is one that put five nuts in row, enter following command in terminal to have the game:


A picture of this game:


By the way for putting the nuts in screen you need to enter an English letter and without any spaces enter a number from 1 to 19 so you can have your nut in right place.

One of the most hard games in BSDGames to win is Trek which the maker of the game(Eric P. Allman) said:”It takes a long time to get used to game however it is worthy to play!”, Enter


in terminal so the game will get open and asks you to press Enter to continue and start asking some questions which you should answer before the game. first question is:

What length game:

In the answer you should specify field length and the acceptable answers are:


Again it asks you:

What skill game:

Now you should answer for game difficulty, the acceptable answers are:


This game has resume feature so you can play the game and put the rest of game for next days so because of that game asks to enter a password so if you wanted to stop game and continue it next days others have to have your password to play game so they can’t ruin your game so when game asks you:

Enter a password:

Enter a password and press Enter key to pass, Now the game got started and you should go for your first move, for moving nuts you should give your game command in front of “Command:” in game screen, you can move nuts with these commands:


As an example:

move 0 6

In command above 06 is your coordinate, for more information read the man page:

man /usr/share/doc/bsdgames/


Boggle is nice game among this games that helps you to improve your English, Accuracy and etc, in this game you have a limited time to find some meaningful words from a table of letters and put them in next to each other 😀


We said fun in terminal but fun doesn’t mean just some games! let’s go and see some funny commands such as Cmatrix, bb, sl and etc.

We know that “ls” command list our files in a directory but if we use “sl” command instead we would see a train that pass in our terminal so install the package with following command:

sudo apt install sl

Now let’s run it by


in terminal, and the output will be like this:


Now let’s check something even more fun, you watched matrix movie now let’s enter a command to have matrix world in our terminal so first of all install “cmatrix” package by following command:

sudo apt install cmatrix

Now the output will be like this:


another funny command is “cowsay” which can say things you like as a cow! first install the package:

sudo apt install cowsay

Now start it like this:

cowsay I love unixmen!

The output will be like this:

hossein@Lenovo: ~_004

It can even be graphical so install “xcowsay” package with this command:

sudo apt install xcowsay

now let’s try this command:

xcowsay I love unixmen!

And the output will be like this:


There is a package namely “fortune-mod” that helps you to get nice sentences, first install package with this command:

sudo apt install fortune-mod

Now run following command in terminal to get your sentence, each time you run command the sentence will be different:


The output is something like this:

hossein@Lenovo: ~_005

Oh! by the way you can even pipe the command with “cowsay” like this:

fortune | cowsay

The output will be like this:

hossein@Lenovo: ~_006

If you like to have fire in your terminal enter following command and install needed package:

sudo apt install libaa-bin

Now enter this command:


The output will be like this:


I wish you enjoy from your terminal 😀