RackNerd Billboard Banner

How to Play Chess in Your Linux Terminal

Want to play chess without leaving your terminal? Good news: you don’t need a fancy GUI or an internet connection to enjoy a good game. Linux makes it easy to play chess right in the command line. Here’s how to do it.


1. Install a Terminal Chess Program

The quickest way is to use a package called gnuchess. It’s free, open source, and available in most Linux repositories.

Open your terminal and run:

On Ubuntu/Debian:

sudo apt update
sudo apt install gnuchess

On Fedora:

sudo dnf install gnuchess

On Arch:

sudo pacman -S gnuchess

2. Start a Game

After installation, just type:

gnuchess

You’ll see the chessboard and a prompt. You play by typing moves in algebraic notation. For example, to move the pawn in front of your king two spaces forward, type:

e2e4

That’s it! The computer will reply, and you’re off.


3. Basic Commands

Here are some simple commands to get the most out of GNU Chess:

  • help – Show command options
  • force – Stop the computer from making moves (good for two players)
  • go – Let the computer resume play
  • quit – Exit the game

4. Play Against a Friend

You can play chess with a friend by turning on “force” mode. Just type force before you start, and the computer won’t play—both players can take turns entering moves.


5. Try Other Terminal Chess Games

If you want something a little more visual, try nChess (for Ncurses interface) or fairy-stockfish (for chess variants). But for quick, classic chess, GNU Chess is hard to beat.


Wrapping Up

Playing chess in the Linux terminal is simple, fast, and distraction-free. All you need is a command line and a few minutes to set up. Whether you’re killing time, sharpening your mind, or just want to geek out a little, it’s all right there in your terminal window.

Any questions or favorite chess tricks? Drop them in the comments!

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
RackNerd Billboard Banner
© 2025 Computer Everywhere
Your Everyday Guide to the Digital World.
Terms of Service | Privacy Policy
Copy link