4 Best Ubuntu Linux Command Line Games

Terminal is a powerful tool in any Linux OS with lots of uses. You can also play games in your terminal. Now we are going to see some best Linux command line terminal games on your Ubuntu.

Best Linux Command Line Games


Nsnake is a popular clone of the classic Nokia snake game. To install this game on your Ubuntu, open terminal and type the below code and hit enter.

sudo apt-get install nsnake

Type your ubuntu password if asked. To open the game just type



on the terminal window. Use the up and down keys to move on menus. Select the menu by pressing the enter key. Here you can also change the keyboard controls.
Use arrow keys to move the snake to feed it.

Nsnake game


2048 is a very popular sliding block puzzle game by Italian web developer Gabriele Cirulli.You need to the slide numbered tiles on a grid to combine them to create a tile with the number 2048.

To install 2040 on ubuntu type the below command in terminal and press the enter key.

wget https://raw.githubusercontent.com/mevdschee/2048.c/master/2048.c

then the below code in terminal.

gcc -o 2048 2048.c

To run the game, just type the below command and hit enter.


2048 cli game

Use the arrow keys to move and q for quit the game.

Also Read:  Bforartists 3D Graphics Software


Bastet is the Tetris clone for your Linux OS.To install it on ubuntu use the below code in the terminal.And type Y to confirm the installation.

sudo apt install bastet

To play the game, run the below command in terminal.


Use the arrow keys to move the blocks and space bar to rotate the block.

Bastet game


Pacman4console is a console version of the popular arcade game Pacman. use the below command to install the game.

sudo apt-get install pacman4console

To run the game use the below command.
Note: Maximize your terminal windows to play the game.



If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on X (Twitter) and Facebook.

Leave a Reply