12 Amazing Terminal Based Games for Linux Enthusiasts

When you’re a Linux power user, mastering the command line is essential. Using commands to control the system gives users more power and control over the Linux system.

Therefore, for system administrators and other users who enjoy operating from the terminal, this often involves spending a significant amount of time there, which many find uninteresting or even boring.

To break away from terminal monotony and take a break from commands, you can entertain yourself with Linux games if you enjoy gaming.

There are countless terminal-based games available on Linux, and in this article, we’ll explore a few of the most interesting ones.

1. Nudoku – Sudoku Game

Nudoku is a terminal-based sudoku puzzle game for Linux. In Noduku, a player is required through logic to fill up a 9×9 grid with numbers 1 to 9, just as in any other game, it has different levels of difficulty from simple to advanced levels.

Nudoku - Sudoku Game
Nudoku – Sudoku Game

To install Nudoku on Linux, use the following appropriate command for your specific Linux distribution.

sudo apt install nudoku         [On Debian, Ubuntu and Mint]
sudo yum install nudoku         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
sudo emerge -a sys-apps/nudoku  [On Gentoo Linux]
sudo apk add nudoku             [On Alpine Linux]
sudo pacman -S nudoku           [On Arch Linux]
sudo zypper install nudoku      [On OpenSUSE]    
sudo pkg install nudoku         [On FreeBSD]

2. 2048-cli Game

2048-cli is a simple yet interesting terminal game, it is a terminal implementation of the popular GUI-based 2048 game which is based on 1024 and theoretically has properties of Threes, which is a cross-platform, tiny puzzle smartphone game on iOS, Android, and Windows phone.

2048 Game for Linux
2048 Game for Linux

To install 2048-cli on Linux, use the following commands.

git clone https://github.com/tiehuis/2048-cli.git
cd 2048-cli/
make
./2048

3. MyMan

MyMan is another easy-to-play text-based game for your Linux terminal, which was developed with highly influenced by the Japanese game development company, Namco’s famous Pac-Man game.

It can run on several other Unix-like operating systems including FreeBSD, OpenBSD, Solaris and many more.

Myman Game for Linux
Myman Game for Linux

To install MyMan on Linux, use the following commands.

wget https://excellmedia.dl.sourceforge.net/project/myman/myman-cvs/myman-cvs-2009-10-30/myman-wip-2009-10-30.tar.gz
tar -xvf myman-wip-2009-10-30.tar.gz
cd myman-wip-2009-10-30/
./configure
make
sudo make install
myman

4. Greed

Greed is a clone of Pac-Man and Tron similar to MyMan above, but it offers a colored text interface.

A player uses the keyboard arrows to eat as many digits as possible in any direction as he/she moves, the number of digits eaten equals to the number of steps in a particular direction.

Greed Game for Linux
Greed Game for Linux

To install GIMP on Linux, use the following appropriate command for your specific Linux distribution.

sudo apt install greed         [On Debian, Ubuntu and Mint]
sudo yum install greed         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
sudo emerge -a sys-apps/greed  [On Gentoo Linux]
sudo apk add greed             [On Alpine Linux]
sudo pacman -S greed           [On Arch Linux]
sudo zypper install greed      [On OpenSUSE]    
sudo pkg install greed         [On FreeBSD]

5. Pacm4conesole

Pacman4console is a free terminal clone of the famous Pac-man game, developed by Mike Billars who wanted to play Pac-Man on the console to deal away with having to enable Flash on a browser to play Pac-Man.

Pacman4console Game for Linux
Pacman4console Game for Linux

To install Pacm4conesole on Linux, use the following appropriate command for your specific Linux distribution.

sudo apt install pacman4console         [On Debian, Ubuntu and Mint]
sudo yum install pacman4console         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
sudo emerge -a sys-apps/pacman4console  [On Gentoo Linux]
sudo apk add pacman4console             [On Alpine Linux]
sudo pacman -S pacman4console           [On Arch Linux]
sudo zypper install pacman4console      [On OpenSUSE]    
sudo pkg install pacman4console         [On FreeBSD]

6. Moon Buggy

Moon Buggy is a free, straightforward character game, in which a player controls a car over craters on the moon’s surface. You are simply required to side-slide the car using control keys and jump over the craters to earn more marks.

Moon-Buggy Game for Linux

To install Moon Buggy on Linux, use the following appropriate command for your specific Linux distribution.

sudo apt install moon-buggy         [On Debian, Ubuntu and Mint]
sudo yum install moon-buggy         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
sudo emerge -a sys-apps/moon-buggy  [On Gentoo Linux]
sudo apk add moon-buggy             [On Alpine Linux]
sudo pacman -S moon-buggy           [On Arch Linux]
sudo zypper install moon-buggy      [On OpenSUSE]    
sudo pkg install moon-buggy         [On FreeBSD]

7. nInvaders

nInvaders is a terminal version of a popular GUI Space Invaders game, here, players have to defend the Earth from Space invaders by controlling warships at the bottom of the screen (earth).

nInvaders Game For Linux

To install nInvaders on Linux, use the following appropriate command for your specific Linux distribution.

sudo apt install ninvaders         [On Debian, Ubuntu and Mint]
sudo yum install ninvaders         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
sudo emerge -a sys-apps/ninvaders  [On Gentoo Linux]
sudo apk add ninvaders             [On Alpine Linux]
sudo pacman -S ninvaders           [On Arch Linux]
sudo zypper install ninvaders      [On OpenSUSE]    
sudo pkg install ninvaders         [On FreeBSD]

8. Zangband

Zangband is a free, cross-platform, single player dungeon inspired adventure game, which is derived from Rogue hence the reference, a roguelike game.

Zangband Game
Zangband Game

To install Zangband on Linux, use the following appropriate command for your specific Linux distribution.

sudo apt install zangband         [On Debian, Ubuntu and Mint]
sudo yum install zangband         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
sudo emerge -a sys-apps/zangband  [On Gentoo Linux]
sudo apk add zangband             [On Alpine Linux]
sudo pacman -S zangband           [On Arch Linux]
sudo zypper install zangband      [On OpenSUSE]    
sudo pkg install zangband         [On FreeBSD]

9. Nethack

Nethack is also a cross-platform dungeon and dragons-inspired adventure game, just like Zangband. It has both a GUI and text interface, the main concept in Nethack is to discover the detail of a dungeon but not to kill all things in sight, which is the case with other dungeon-like games.

NetHack Game for Linux
NetHack Game for Linux

To install Nethack on Linux, use the following appropriate command for your specific Linux distribution.

sudo apt install nethack-console         [On Debian, Ubuntu and Mint]
sudo yum install nethack-console         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
sudo emerge -a sys-apps/nethack-console  [On Gentoo Linux]
sudo apk add nethack-console             [On Alpine Linux]
sudo pacman -S nethack-console           [On Arch Linux]
sudo zypper install nethack-console      [On OpenSUSE]    
sudo pkg install nethack-console         [On FreeBSD]

10. Linux Lunar Lander

Lunar Lander is an exciting terminal game on Linux, here, you are required to fly a Lunar Module (LM) to the surface of the moon, where no penguin has ever gone before.

On successful landing, with a small amount of fuel in your LM tanks, this will be a great step for the penguin to live otherwise, it will just become any other crater in the lunar soil.

Linux Lunar Lander
Linux Lunar Lander

11. Secret Adventure

Secret Adventure is a fun-filled, small adventure game that you can play on Linux and Mac OS X terminals. It runs within the Emacs text editor and you can access it from your Linux terminal.

Remember, you must have Emacs text editor installed on your system, then you can launch it by simply issuing the command below and enjoy:

$ emacs -batch -l dunnet
Secret Adventure Game
Secret Adventure Game

12. Solitaire TUI

Solitaire TUI is a text-based version of the classic Solitaire card game that is designed to run in a terminal environment on Linux systems.

The game allows users to play the game using only keyboard inputs and view the game’s graphics and interface rendered in text characters. It provides a simple yet entertaining way to enjoy the classic card game directly within the terminal.

Solitaire Linux Game
Solitaire Linux Game

To install Solitaire on Linux, use the following commands.

sudo snap install go --classic
go install github.com/brianstrauch/solitaire-tui@latest
sudo ln -s ~/go/bin/solitaire-tui /usr/bin/solitaire
solitaire

There are countless terminal games you can install on Linux to keep yourself entertained, you can also let us know of some interesting and fun-filled games that keep you away from the Linux commands at the terminal.

Aaron Kili
Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.