Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Linux Skills Game: New Commands You Learn

· 7 min read · Home Tech

In this article
  1. What These Games Actually Teach
  2. How These Games Work
  3. Why Games Are Effective for Learning Commands
  4. Popular Free Linux Skills Games
  5. How to Choose the Right Game for You
  6. Common Problems and How to Overcome Them
  7. Are There Any Costs or Safety Concerns?
  8. Frequently Asked Questions

Yes, playing a free Linux skills game can teach you new commands, especially if it is designed as an interactive terminal simulator or a challenge-based puzzle. These games work by placing you in a fake shell environment where you must type real commands to solve problems, so you learn by doing rather than by reading.

What These Games Actually Teach

Most Linux skills games focus on the command-line interface (CLI) because that is where the real power of Linux lies. The commands you encounter fall into several categories:

  • File navigation: ls, cd, pwd, find, locate
  • File manipulation: cp, mv, rm, mkdir, touch
  • Text processing: grep, sed, awk, cat, less
  • Permissions and ownership: chmod, chown, sudo
  • Process management: ps, kill, top, htop
  • Networking: ping, curl, wget, ssh
  • System info: uname, df, du, free

Games often introduce commands in a progressive order, starting with basic navigation and moving to more complex piping and redirection. For example, a level might ask you to find all files containing a certain word, which requires grep combined with find or a wildcard. By completing the challenge, you internalize the syntax and the logic behind it.

How These Games Work

The typical design of a Linux skills game is a web-based terminal emulator that runs in your browser. You are given a task, such as “delete all files with the .tmp extension” or “change the permission of file.txt to read and write for the owner only.” You type the command, press Enter, and the game checks if your command achieves the goal.

Some games use a sandboxed virtual machine running real Linux, while others simulate the file system. The best ones use a real shell, because then you can experiment with man pages and see actual outputs. The game might give you hints, but the learning comes from figuring out the right command sequence yourself.

There are also more elaborate games that turn the terminal into an adventure story. For instance, you might play a text-based RPG where you must use cd to move between rooms and cat to read signs. This gamification keeps you engaged, but the core mechanic remains the same: type a real command, see a real result.

Why Games Are Effective for Learning Commands

Traditional learning methods, like reading man pages or watching tutorials, are passive. Games force active recall and immediate application. When you type grep -r "error" /var/log/ and see the output, you remember that -r means recursive, not because you memorized the flag, but because you used it to solve a problem.

Another advantage is the safe environment. You can run rm -rf in a game without destroying your real files. This encourages experimentation, which is crucial for learning. You can try different flags, pipe commands together, and see what breaks—all without risk.

Games also provide instant feedback. If your command is wrong, the game tells you immediately, often with a hint. This short feedback loop is far more effective than reading a book and wondering if you got it right.

Several free games are well-known in the Linux community. Here are a few that are commonly recommended:

  • Terminus – A text-based adventure game that teaches command-line basics like ls, cd, cat, and grep in a sci-fi story.
  • Bandit (from OverTheWire) – A wargame where you SSH into a server and use commands to find passwords to advance to the next level. It covers a wide range of commands, including ssh, find, grep, and tar.
  • Command Line Murder Mystery – A detective game where you use ls, cd, grep, and awk to investigate a crime.
  • Linux Journey – Not strictly a game, but it has interactive quizzes and a “Quest” section that gamifies learning.
  • Vim Adventures – Focuses on the Vim editor, but it teaches modal editing through a game.

Each of these has a different focus. Terminus is great for absolute beginners, Bandit is excellent for intermediate users who want to learn security-related commands, and Vim Adventures is perfect if you want to master Vim.

How to Choose the Right Game for You

Your choice should depend on your current skill level and what you want to achieve.

  • Complete beginner: Start with Terminus or Command Line Murder Mystery. They assume no prior knowledge and guide you step by step.
  • Intermediate user: Try Bandit. It will push you to use commands you might not have encountered, like ssh, nc, and base64.
  • Interested in text editing: Play Vim Adventures. It’s the most fun way to learn Vim’s modal system.
  • Want to practice real-world tasks: Look for games that simulate server administration, like setting up a web server or fixing a broken system. Some online platforms offer these as interactive labs.

Also consider the interface. Some games are purely text-based, which is authentic but can be intimidating. Others have a graphical overlay with clickable hints. Choose what feels comfortable, but remember that the goal is to become comfortable with the raw terminal.

Common Problems and How to Overcome Them

Players often hit a few common roadblocks:

  • Getting stuck on a level: Don’t be afraid to look up the answer. The learning happens when you understand why the solution works. Many games have community forums or walkthroughs.
  • Forgetting commands after finishing: Spaced repetition is key. Replay the game after a few weeks, or use flashcard apps like Anki to review commands.
  • Confusing similar commands: For example, cat vs. less vs. more. Write down the differences and use them in different contexts.
  • Not understanding flags: Always check the man page (man command) when you encounter a new flag. Games often don’t explain every option, so you need to build the habit of reading documentation.

If a game becomes too hard, take a step back and review the basics. You can also practice on your own Linux machine or a virtual machine. The game is a supplement, not a replacement for real practice.

Are There Any Costs or Safety Concerns?

All the games mentioned are free to play. Some may have premium features or donations, but the core learning is accessible without paying. Bandit and other OverTheWire games are entirely free and open to everyone.

Safety is generally not a concern because you are playing in a controlled environment. However, there are a few things to keep in mind:

  • Never run commands from a game on your real system without understanding them. Some commands, like rm -rf, can be destructive.
  • Use a virtual machine or a container if you want to experiment with dangerous commands locally. This isolates any damage.
  • Be cautious with online games that require you to connect to external servers. Bandit, for example, uses SSH to connect to a remote server. This is safe, but always ensure you are using the official URL.

In short, playing these games is a safe and effective way to learn, as long as you treat the commands as learning tools and not as instructions for your real system.

Frequently Asked Questions

Do I need to install Linux to play these games?

No. Most browser-based games run entirely in your web browser and simulate the terminal. You don’t need to install anything. Games like Bandit require you to have an SSH client (which is built into Linux and macOS, and available for Windows via PuTTY or the built-in OpenSSH), but you don’t need a local Linux installation.

Can I really learn enough to use Linux professionally?

Games are a great starting point, but they are not a complete education. They teach you the syntax and basic usage of commands, but real-world Linux administration involves understanding system configuration files, services, networking, and security. Use games as a foundation, then build on it with books, courses, and hands-on projects.

What if I get stuck on a level for a long time?

It’s normal to get stuck. First, try to break the problem down: what do you need to find, and what command can help you find it? Use the man command to read about the tools you have. If you’re still stuck, look for hints online. Many games have communities where you can ask for help without spoiling the solution.

Are there games for advanced users?

Yes. OverTheWire’s Bandit goes up to level 34 and covers advanced topics like git, tar, ssh tunneling, and binary exploitation. There are also games like “Under the Wire” for WarGames and “Leviathan” for more security-focused challenges. For system administration, you can find interactive labs on platforms like Katacoda (though some are no longer free).

How long does it take to see results?

Most players notice an improvement after just a few hours of play. You’ll start to remember commands because you’ve used them repeatedly in different contexts. However, to retain the knowledge, you need to practice consistently. Aim for 30 minutes a day for a week, and you’ll see a significant difference.

Can I play these games on a mobile device?

Some games are responsive and work on mobile browsers, but the experience is better on a desktop because you need a physical keyboard for typing commands. If you want to play on mobile, consider using a Bluetooth keyboard or an app that provides a terminal emulator.