Top 5 Terminal based games you can play on Linux.

Top 5 Terminal Games You Can Play On Linux

Linux can now run some amazing games thanks to Valve’s recent Steam Deck & its push towards proton. But what if I tell you that you can also run some classic games directly inside the Terminal? And not just one, there are several good games that you can run on pretty much every Linux distribution, and you do not need any kind of modern Hardware. In this tutorial, I will show you 10 such games which you can run directly in the Terminal to pass your time.

1. Ninvaders

As the name suggests, it is the game Space Invaders. With a spaceship, you have to shoot down an army of aliens using your arrow keys and the space bar. The game is really simple and fun to play.

Playing Ninvaders In The Terminal
Playing Ninvaders In The Terminal

To install this game on Debian and Ubuntu-based distributions, just open a Terminal and type :

sudo apt install ninvaders

On the Fedora workstation, you have to add a Third party ‘rpm-sphere’ repository in order to install and run this game, simply type:

sudo rpm -i rpmsphere-release-36-1.noarch.rpm
sudo dnf install ninvaders
Installing Ninvaders On Fedora
Installing Ninvaders On Fedora

Strangely, on Fedora, launching the game is a bit different from Ubuntu as the ‘i’ is capitalized. In order to launch the game, type the following command :

# On Fedora

# On Debian or Ubuntu

2. Bastet

Tetris is the most popular game maybe ever, from consoles to Android/iOS applications, there have been multiple renditions of this game, so why should the Linux community stay back? So here is the Linux version that even runs directly from the Terminal.

The installation is really simple, just open a Terminal and type the following commands :

# On Debian and Ubuntu based distributions :
sudo apt install bastet

# On Fedora Workstation :
sudo dnf install bastet
Installing Bastet On Linux
Installing Bastet On Fedora

To run this game, simply type ‘bastet‘ in the Terminal and press enter.

3. nSnake

As the name suggests, this is the famous ‘Snake’ game that we used to play on the old Keypad phone. nSnake is the Terminal version of this game.

Playing Nsnake On Fedora
Playing Nsnake On Fedora

You can easily install this by typing the following command in the Terminal :

# On Debian and Ubuntu based distributions :
sudo apt install nsnake

# On Fedora Workstation
sudo dnf install nsnake
Installing NSnake On Fedora
Installing NSnake On Fedora

4. Moon Buggy

This game is very much like Google’s Dino game, except it is more fun to play. With a tank, you can jump on the surface with the Space bar, and using the ‘L’ or ‘A’ key, you can shoot.

Playing Moon Buggy
Playing Moon Buggy

And the installation is really simple. Just open a Terminal and type the following commands :

# On Ubuntu and Debian based distributions :
sudo apt install moon-buggy

# On Fedora Workstation :
sudo dnf install moon-buggy

To launch the game, simply type :


5. 2048

The highly addictive brain-hurting game 2048 also has a Linux port. You have to reach a score of, 2048 in this game by combining numbers that are multiple of 2.

Playing 2048 On Fedora
Playing 2048 On Fedora

This game is not available in the official repositories, and you have to compile it from source code. But don’t worry it is really easy, just open a Terminal and type the following commands :


gcc -o 2048 2048.c
Installing 2048 On Linux
Installing 2048 On Linux

To run this game, type:



All the games mentioned above are completely open source, and one can argue that’s why they are even better than the original version. Let me know your high scores down in the comments below.

If you want to play High-end games such as Rocket League or Fall Guys, don’t worry, they run flawlessly on Linux too using Heroic Games launcher or Steam, assuming you have appropriate hardware to run it.


2048 – GitHub

Moon Buggy

Ninvaders GitHub

Bastet – Source code on GitHub