Free Linux Terminal Games and Challenges Worth Trying
In this article
Yes, there are many genuinely fun and challenging games you can play entirely inside a Linux terminal, and most are free, open-source, and installable from your distribution’s package manager. This article covers the best of them, how to install them, and why terminal games remain a unique niche worth exploring.
Why Terminal Games Still Matter
Terminal games are not just nostalgic relics. They offer a distraction-free, low-resource gaming experience that works over SSH, on minimal servers, or in environments where a graphical desktop is unavailable. Many are also excellent teaching tools: they reinforce command-line skills, expose you to classic game mechanics, and some even let you inspect their source code to learn programming. Because they run in a text buffer, they are extremely fast to start and can be played on hardware that would struggle with modern graphical games.
Classic Arcade and Puzzle Games
The most accessible terminal games are clones of arcade classics. ninvaders is a Space Invaders clone where you move a ship left and right and shoot descending aliens. pacman4console brings the maze-chase gameplay to the terminal, with the same dot-eating and ghost-avoiding mechanics. For puzzle fans, bsdgames is a collection that includes snake, tetris, hangman, and adventure (the original text-based exploration game). These are typically installed via your package manager, for example with sudo apt install ninvaders pacman4console bsdgames on Debian/Ubuntu.
Roguelikes: Deep Strategy in Text Form
Roguelikes are a genre that thrives in the terminal. They feature turn-based gameplay, procedurally generated levels, and permanent death. NetHack is the most famous, with a complex world of monsters, items, and hidden mechanics. Dungeon Crawl Stone Soup (often abbreviated DCSS) is more approachable, with a friendlier interface and a tutorial. Brogue is praised for its elegant design and beautiful ASCII graphics. These games are challenging and can take dozens of hours to master, but they reward careful planning and knowledge of game systems.
Text Adventures and Interactive Fiction
If you prefer story over action, interactive fiction is a rich genre. Frotz is an interpreter for Z-machine games, allowing you to play classics like Zork and The Hitchhiker’s Guide to the Galaxy. Gargoyle is a more modern interpreter that supports multiple formats. Many of these games are available for free from the Interactive Fiction Archive. To start, install frotz and download a game file (often with a .z5 or .z8 extension), then run frotz game.z5.
Network and Multiplayer Terminal Games
Some terminal games are designed for multiplayer over a network. nethack has a server mode, but a simpler option is sshtron, a multiplayer Snake game that you can play by connecting to sshtron.zachlatta.com via SSH. Another is Terminal Overload, a cooperative puzzle game for two players. For a more competitive experience, try curseofwar, a real-time strategy game that supports hotseat and networked play. These demonstrate that terminal gaming is not just a solo activity.
How to Install and Run Terminal Games
Installing terminal games is usually as simple as using your package manager. On Debian/Ubuntu, use apt. On Fedora, use dnf. On Arch, use pacman. For example, to install NetHack on Ubuntu, run sudo apt install nethack-console. Some games, like Dwarf Fortress (which has a text mode), may require downloading from the official site or using a third-party repository. Always prefer your distribution’s official repositories to avoid security risks. After installation, launch the game by typing its command name, often the same as the package name.
Challenges and Learning Opportunities
Terminal games are not just for fun; they can also be challenges. For instance, try to beat ninvaders without losing a life, or complete NetHack (a feat that takes most players months). Many games have scoring systems that encourage replay. Additionally, because these games are open source, you can read their source code to understand game logic, AI, and data structures. This makes them excellent for programmers who want to learn by example. Some distributions even package the source code separately, so you can install it with apt-get source.
Frequently Asked Questions
Are terminal games safe to install?
Yes, if you install them from your distribution’s official repositories. These packages are vetted and maintained by the community. Avoid downloading binaries from random websites, as they could contain malware. Always use apt, dnf, or pacman when possible.
Can I play terminal games over SSH?
Yes, that is one of their biggest advantages. Because they use text output, you can play over SSH with no graphical overhead. This is great for remote servers or when you want to play from a tablet or phone with a terminal app.
What is the best terminal game for beginners?
For someone new to terminal games, ninvaders is a good start because it is simple and has immediate action. bsdgames also includes easy-to-learn games like snake and tetris. If you want a deeper experience, Dungeon Crawl Stone Soup has a tutorial mode and is more forgiving than NetHack.
Do terminal games work on Windows or macOS?
Most terminal games are Unix-based and run on Linux and macOS. On Windows, you can use the Windows Subsystem for Linux (WSL) to run them, but native Windows support is rare. If you are on Windows, consider using a virtual machine or WSL.
Are there any graphical terminal games?
Yes, some games use a framebuffer or terminal graphics libraries to display images, but they are not common. Most terminal games are purely text-based. However, you can use cacademo or libcaca to convert graphical games to ASCII art, but the experience is often not as good.
Can I make my own terminal game?
Absolutely. You can use languages like Python with the curses library, or C with ncurses. There are many tutorials online. Starting with a simple game like Snake is a great way to learn.