Most people do not struggle with Linux because it is impossible. They struggle because reading about grep or chmod is not the same as using them. Games to learn Linux commands close that gap by giving you a goal, a small win, and a reason to try the next command.
This guide covers five resources I checked against their official pages: OverTheWire Bandit, Bashcrawl, Command Challenge, The Command Line Murders, and SadServers. You will see what each one teaches, how to start, and which devices it works on, based on what the official sources actually document.
What Is Interactive Linux Learning, and Why Does It Work?
Interactive learning means you type real commands and get immediate feedback, instead of watching a video or reading a tutorial. Games keep you engaged by showing instant progress: cracking a password opens a new stage, discovering a clue identifies a suspect, or repairing a crashed server brings it back online.
For beginners, this does three useful things:
- It forces recall. You must remember the command, not recognise it on a page.
- It makes mistakes cheap. Making a mistake in a practice lab comes with zero risk.
- It builds a habit. Short, goal-driven sessions are easier to repeat than long study blocks.
Games do not replace documentation or a proper course. They are best used alongside the man pages and a basic reference, as a way to practise what you read.
Quick Comparison Table
| Resource | Learning focus | Beginner suitability | Access method | Documented compatibility |
|---|---|---|---|---|
| OverTheWire Bandit | Core commands, files, permissions, security basics | Aimed at absolute beginners | SSH to a remote server | Needs an SSH client; no device list on the site |
| Bashcrawl | Navigation, reading files, grep, find, pipes, permissions | Very beginner-friendly | Local terminal game; separate browser trainer | Terminal: Linux and macOS; browser trainer: README says it works on mobile |
| Command Challenge | One-line shell problem solving | Good after the basics | Browser (JavaScript required) | Browser-based; device list not stated |
| The Command Line Murders | Searching and filtering text files | Beginner-friendly | Download or clone, then use a terminal | Needs a terminal; no device list in the repo |
| SadServers | Troubleshooting live Linux and DevOps servers | Easier scenarios exist, but it suits intermediate users best | Browser terminal; SSH on some plans | Browser or SSH; device list not stated |
โNot statedโ means I found no official statement, not that it will fail. Where I suggest a workaround, I say so.
5 Interactive Games to Learn Linux Commands Faster
1. OverTheWire Bandit: Learn Linux Commands Through Levels
Official link: overthewire.org/wargames/bandit
How it works
Bandit is a wargame run by OverTheWire and described on its page as aimed at absolute beginners. You connect to a remote server over SSH, start at Level 0, and use what you find to log into the next level. Each level has its own page with the goal and a few hints.
Level 0 tells you to connect to bandit.labs.overthewire.org on port 2220 as user bandit0. A typical first command looks like this:
bash
ssh [email protected] -p 2220The Level 0 page lists the starting login details, so use those rather than copying them from anywhere else.
Skills you practise
The page says Bandit teaches the basics you need before attempting other wargames. In practice, expect to read files, move through directories, search for things, and work with permissions. The official page does not publish a skills list, so check the individual level pages to see what each one asks for.
Difficulty and setup
Early levels are gentle, and the site itself notes that people who have never used a command line should read an introduction to user commands first. You need an SSH client. The site mentions no account or fee, but I did not find a pricing statement, so confirm on the page before assuming.
If you play from a virtual machine and see a โbroken pipeโ error under NAT networking, the page suggests adding IPQoS throughput to your SSH client configuration, or switching the adapter to Bridged mode.
Benefits and limitations
- Benefit: it uses a real shell, so the habits transfer directly to real systems.
- Benefit: the level-by-level structure gives clear progress.
- Limitation: there is no built-in tutor. If you are stuck, you search the
manpages or the web. - Limitation: it needs an SSH client and a stable connection.
Device compatibility
The site documents SSH access but not a list of supported devices. Any device with a working SSH client should be able to attempt it, which is an inference on my part rather than an official claim.
2. Bashcrawl: A Dungeon Crawl Where Folders Are Rooms
Official link: github.com/bamr87/bashcrawl
How it works
Bashcrawl is a terminal game with a fantasy theme. The READMEโs central idea is that the filesystem is the game: directories are rooms, scroll files carry the story and lessons, and executable scripts are encounters. The repository you linked is a fork (version 3.1) of the original game by Seth Kenlon, and it adds a browser trainer with mini-games and cheatsheets.
Skills you practise
According to the README, the game teaches pwd, ls, cd, cat, grep, find, pipes, variables, permissions, environment variables, and symbolic links. The arcade section also drills tree and pipelines such as sort | uniq -c | head.
Setup
For the terminal version, the README gives these steps:
bash
git clone https://github.com/bamr87/bashcrawl.git
cd bashcrawl
./setup.sh
cd entrance
cat scrollThe terminal game is pure bash with no dependencies. Python 3.10 or newer is needed only for the web export and the test harness, and Node only for a separate framework, so neither is required to play. The project uses the MIT license.
For the browser trainer, the README says to open the web app at bamr87.github.io/bashcrawl/ with no install, and that it works on mobile.
Difficulty and benefits
This is the gentlest option here. The story framing means each command is introduced as something you need, not something you must memorise. It is a strong first stop for complete beginners.
Limitations
The README describes terminal use on Linux and macOS machines and does not mention Windows. Windows users could try the browser trainer or a Linux environment, though that is my suggestion, not the READMEโs. It is also a small community project (the page showed a handful of stars), so expect less support than a large platform.
3. Command Challenge: One-Line Shell Puzzles in Your Browser
Official link: cmdchallenge.com
How it works
Command Challenge describes itself as โone-line shell challenges, to help improve your skill on the commandline.โ You type a command into a field on the page and it checks the result. If you ever get stuck, you can simply click on โView Solutionsโ to see the answer. The page requires JavaScript.
Skills you practise
The focus is practical one-liners: filtering, counting, searching, and transforming text with the tools that ship with a shell. The homepage does not list the challenge count or the exact commands covered, so I will not guess at either.
Difficulty and setup
There is nothing to install. The page mentions no sign-up and no pricing. A source repository is linked on GitLab and is under the MIT license, though its README contents were not available to me, so I cannot say whether there is an offline option.
Benefits and limitations
- Benefit: it is the fastest way to start. Open the page and type.
- Benefit: seeing other solutions teaches you that one problem has many valid commands.
- Limitation: it is not a guided course. It works best once you know basic navigation.
- Limitation: typing long commands on a phone keyboard is awkward, and the site does not document mobile support.
Device compatibility
It runs in a browser. Any modern browser with JavaScript should be able to load it, but the site does not publish a device list.
4. The Command Line Murders: Solve a Mystery With Text Tools
Official link: github.com/veltman/clmystery
How it works
The repository describes a murder in Terminal City, where the police department needs your help solving it from the command line. You download the files, open a terminal in that folder, and read the instructions file.
Skills you practise
The repositoryโs own text mentions cat and nano, and points you to a cheatsheet (provided as Markdown and PDF) for the basics. A third-party roundup from Make Tech Easier lists grep, cut, sort, head, and tail as the tools used to solve it. That matches the idea of searching and filtering text files, but treat it as a secondary source.
Setup
You can clone the repository with Git or download it as a zip. The repo includes eight hint files, a solution file, and an encoded file. It uses the MIT license. The repository does not say how to check your answer in the text I could read, so look at the instructions file for that step.
Difficulty and benefits
This is a puzzle that rewards patience. It is useful for learning how to search through many files without opening each one, which is a core everyday skill.
Limitations
It is a single case, so you will finish it. It also needs a terminal, and the repository does not describe Windows, mobile, or browser support.
5. SadServers: Fix Broken Linux Servers
Official link: sadservers.com
How it works
Often called the LeetCode of the system admin world, SadServers tests you by putting you in charge of a broken machine that needs diagnosing and fixing. You investigate, fix it, and use a โCheck My Solutionโ button where a test is provided.
Skills you practise
Topics listed include Linux and Bash, web servers, databases, data processing, Docker, Kubernetes, infrastructure as code, and observability. Scenarios are labelled Fix, Do, or Hack, and the scenarios page shows estimated solve times of 10 to 60 minutes. The visible part of that page listed at least 33 Easy and 53 Medium scenarios (the page was truncated, so the full list is larger or equal).
Access and pricing
You can jump straight into certain challenges right away without even signing up. Others need an email sign-in or a paid plan. At the time I checked, the pricing page listed:
- Hobbyist (free): a selection of scenarios and a progress dashboard.
- Pro: $9 per month or $72 per year, with 125+ scenarios.
- Pro+: $11 per month, $88 per year, or $249 one-time, adding direct SSH access to the servers.
Plans and rates can shift, so always review their official website before paying.
Browser versus SSH
The scenarios page mentions both. Some scenarios offer an โOpen the Server Terminalโ button for browser access, and direct SSH is listed under Pro+.
Benefits and limitations
- Benefit: it simulates real troubleshooting, which is closer to a sysadmin job than any other resource here.
- Limitation: it is not a first stop for someone who has never typed
ls. - Limitation: full access is paid, and scenarios are time-limited.
Smartphone vs Computer: How to Get Started
On a computer (best experience). Start with Bashcrawl in a terminal, then move to Bandit over SSH. Use Command Challenge in any browser for daily practice. On Windows, a Linux environment is a sensible choice for terminal-based games, though none of the five sites document Windows specifically.
On a smartphone. The documented options are limited:
- Bashcrawlโs browser trainer, which its README says works on mobile.
- Command Challenge and SadServers, which are browser-based, though neither site documents mobile use.
- Bandit, which needs an SSH client. Mobile SSH apps exist, but OverTheWire does not document them.
Typing symbols such as |, ~, and / is slower on a phone, so treat mobile as practice for short sessions rather than your main setup. I found no official statement of iOS or Android support for any of the five, so test before relying on it.
Benefits and Limitations of Learning Linux Through Games
Benefits
- Motivation comes from the game, not from discipline alone.
- You practise recall under realistic conditions.
- Most options here need no more than a browser or a terminal.
Limitations
- Games skip theory, so concepts like the filesystem hierarchy still need reading.
- Hints and solutions can make it tempting to skip the thinking.
- You may build gaps. A game might never ask you to use
tarorsed.
A simple rule helps: attempt each challenge for ten minutes before looking at a hint.
Recommended Learning Order
- Bashcrawl for navigation and basic file commands.
- The Command Line Murders to practise searching and filtering text.
- OverTheWire Bandit for sustained practice on a real server.
- Command Challenge for speed and one-line fluency.
- SadServers for troubleshooting once the fundamentals feel natural.
If you like quick online practice, Command Challenge works great as a daily starter right from your first day.
Frequently Asked Questions
1. What is the best game to learn Linux commands?
For complete beginners, Bashcrawl is the gentlest start. Bandit is the best-known longer path because the official page targets absolute beginners.
2. Can I learn Linux commands on a smartphone?
Partly. Bashcrawlโs README says its browser trainer works on mobile, and browser-based sites may load, but I found no official iOS or Android support statements for the five resources.
3. Are these Linux learning games free?
Bandit, Command Challenge, Bashcrawl, and The Command Line Murders show no pricing on the pages I read. SadServers has a free tier and paid plans. Confirm current terms on each official site.
4. Do I need Linux installed?
Not always. Command Challenge and SadServers run in a browser, Bandit connects to a remote server, and the others need a terminal.
5. How long does it take to learn Linux commands?
It depends on your practice time. Regular short sessions are more effective than rare long ones, and no game can promise a specific timeline.
6. Are these games enough to get a job?
They help build practical skill, but employers look at broader experience. Use them alongside projects and formal study.
Conclusion
Games to learn Linux commands turn passive reading into active practice. Start with Bashcrawl or Command Challenge if you want an easy entry, use Bandit and The Command Line Murders to build real command-line habits, and move to SadServers when you are ready for realistic troubleshooting. Pick one, play for ten minutes today, and build from there.
Discover more from Jahid Shah
Subscribe to get the latest posts sent to your email.




















