a linux adventure in your browser

Start as guest.
Leave as root.

A pixel-art game where every move is a real command, typed into a real Alpine Linux machine that boots right in your tab. No install. No sign-up for the first levels.

Play free — no sign-up for the first levels

The game: Kern, a little console on legs, walks beside the player next to a live Linux terminal
  • acl
  • awk
  • blkid
  • chage
  • cp
  • curl
  • dig
  • echo
  • free
  • fuser
  • gpg
  • groups
  • ionice
  • journalctl
  • limits
  • ls
  • lvm
  • mkfs
  • nano
  • offboarding
  • patching
  • printf
  • pwd
  • sed
  • skel
  • ss
  • su
  • swap
  • tail
  • timeout
  • top
  • ulimit
  • uptime
  • vim
  • wc
  • xargs
  • alias
  • backdoors
  • cat
  • chmod
  • cron
  • cut
  • dmesg
  • export
  • fsck
  • getent
  • gpt
  • head
  • ip
  • kill
  • locate
  • lsof
  • man
  • mount
  • nice
  • openssl
  • pgrep
  • ps
  • rm
  • sessions
  • sort
  • ssh
  • sudo
  • sysctl
  • tar
  • timezone
  • touch
  • umask
  • userdel
  • visudo
  • wget
  • apk
  • bashrc
  • cd
  • chown
  • cryptsetup
  • df
  • du
  • find
  • fstab
  • gpasswd
  • grep
  • history
  • jobs
  • less
  • losetup
  • lvextend
  • mkdir
  • mv
  • nologin
  • passwd
  • ping
  • ptrd
  • scp
  • shadow
  • source
  • strace
  • sudoers
  • systemctl
  • tee
  • tldr
  • tr
  • uniq
  • usermod
  • vmstat
  • whoami

$ uname -o

Not a simulation. A real Linux machine runs in your browser, and the only way forward is to learn how to drive it.

how it works

Three steps. The first takes ten seconds.

The game screen: pixel village above, a real Linux terminal below, Kern's dialog and the mission HUD

the path

The filesystem is the world map

22 worlds, one per directory, each ending in a boss. Here is what you can do after each one.

  1. world 01The Shellfind your way around any Linux box10 missionsbossrank → user
  2. world 02Filescreate, copy, move and safely delete anything10 missionsboss
  3. world 03The EditorThe Editor10 missionsboss
  4. world 04Reading & searchingdig the one clue out of ten thousand log lines10 missionsboss
  5. world 05Users & permissionsread permissions, fix them, use sudo with care11 missionsbossrank → sudoer
  6. world 06AccountsAccounts11 missionsboss
  7. world 07Text Powerchain pipes, sed and awk into one-liners11 missionsboss
  8. world 08Bash Scriptingwrite your own scripts and tools11 missionsboss
  9. world 09Your EnvironmentYour Environment9 missionsboss
  10. world 10Processesfind and stop a runaway process11 missionsbossrank → sysadmin
  11. world 11Performance & CapacityPerformance & Capacity10 missionsboss
  12. world 12System & Servicesstart, schedule and debug services11 missionsboss
  13. world 13Packages for RealPackages for Real10 missionsboss
  14. world 14systemd: Servicessystemd: Services8 missionsboss
  15. world 15Units, Timers & TargetsUnits, Timers & Targets8 missionsboss
  16. world 16Storagefree a full disk and pack backups11 missionsboss
  17. world 17Disks for RealDisks for Real10 missionsboss
  18. world 18LVM & RepairLVM & Repair8 missionsboss
  19. world 19Linux Networkingwork out why a site is down11 missionsboss
  20. world 20Crypto & IntegrityCrypto & Integrity11 missionsboss
  21. world 21Security & Hardeningfind the backdoor and harden the machine9 missionsboss
  22. world 22Job TicketsJob Tickets8 missionsboss

the climb

Every directory you clear raises your privileges

  1. 1/home▲ user
  2. 2/tmp
  3. 3/usr/share/vim
  4. 4/var/log▲ sudoer
  5. 5/etc
  6. 6/etc/shadow
  7. 7/dev▲ sysadmin
  8. 8/usr/bin
  9. 9/etc/profile
  10. 10/proc
  11. 11/sys/fs/cgroup
  12. 12/boot
  13. 13/etc/apk
  14. 14/etc/systemd
  15. 15/etc/systemd/system
  16. 16/mnt
  17. 17/etc/fstab
  18. 18/dev/mapper
  19. 19/var/www
  20. 20/etc/ssl
  21. 21/root
  22. 22/srv
  23. #Root Exam▲ root
You start as guest. Ranks unlock where the flags are.

What is inside, counted from the game files

  • worlds
  • missions
  • Codex entries
  • ranks, guest to root

Counted from the game's own content files. Free to play, nothing to install.

missions

Checked by the machine, not by a quiz

There are no multiple-choice questions. A mission is solved when the machine is in the right state: the file is gone, the service is up, the permission is fixed. Any command that gets you there counts.

mission · w02 · /tmp

The disk is filling up. Clear the junk, keep the backups.

  • no *.tmp files left in /tmp
  • backups/ still has 3 files
  • free space above 50%

the codex

A manual that lives in the terminal

Stuck? Type codex grep right in the shell. 204 plain-language entries: what a command does, why you would use it, real examples and the mistakes everyone makes.

guest@home:~$ codex grep

GREP: find lines that match

grep error app.log

print every line containing "error"

grep -i -n warn app.log

ignore case, show line numbers

tip: quote patterns with spaces

skills

Skills that rust if you skip them

212 skills sit on your skill tree. Each one remembers when you last used it; old ones fade, and short review missions come back right before you forget.

see the skill tree ▸
  • navigate
  • permissions
  • pipes · rusting

every day

Daily Shell

One new puzzle a day, the same for everyone. Six tries. Share your grid without spoilers, keep your streak, and chase the shortest answer in command golf.

Today's Daily Shell

PATH TO ROOT · Daily Shell

solved in 3 · streak 4

golf: 19 chars

example result

is it real?

This is Alpine Linux, not a simulation

The v86 emulator runs an x86 PC inside your tab, and that PC boots Alpine Linux. Commands really run, files really change, and yes, rm -rf / really breaks it. Then it reboots from a snapshot.

guest@pathtoroot:~$ cat /etc/os-release | head -2

NAME="Alpine Linux"

ID=alpine

guest@pathtoroot:~$ uname -s -m

Linux i686

guest@pathtoroot:~$

The kernel panic scene that plays after typing rm -rf /
What happens after ⁦rm -rf /⁩. Try it; the machine comes back.

your rank is your privilege level

You are a process. Climb to root.

  1. guestwhere everyone starts
  2. userafter ⁦/home⁩
  3. sudoerafter ⁦/etc⁩
  4. sysadminafter ⁦/proc⁩
  5. rootpass the Root Exam

CERTIFICATE OF ROOT

your_name

climbed from guest to root and passed the Root Exam: real Linux, no hints, against the clock.

uid=0(root)shown on your public profile

example · yours carries your name and date

community

Race your friends to root

Sign in to sync your progress, get a public profile, and show up on the leaderboard: XP, Daily Shell streaks and command golf. The first 5 levels need no account: your trial progress saves in your browser and joins your account when you sign up.

EXAMPLE · not real players

#playerrankXP
1example_user_1root4120
2example_user_2sysadmin3380
3example_user_3sudoer2015
4you?guest0
illustration only · the real board is one click away

man pathtoroot

Questions

Do I need Linux installed?

No. A real Linux machine boots inside your browser tab. Windows, macOS, ChromeOS: if it runs a modern browser, it runs the game. A laptop or desktop keyboard works best.

Is it free?

Yes. Every world, the Daily Shell and the Root Exam are free to play.

Is it real Linux or a simulation?

Real. It is Alpine Linux running on an emulated PC (v86) in your tab. Commands really run, files really change, and rm -rf / really breaks it (then it reboots from a snapshot).

Do I need an account?

Not for the first levels: the first 5 levels of World 1 are free to play right away, saved in your browser. After that, a free account (Google, or email and password) keeps your progress, syncs it to any computer and puts you on the leaderboard. Your trial progress comes with you.

I've never used a terminal. Is that OK?

That is who World 1 is for. Your first mission is one word. A three-tap setup tunes where you start; if you already know the basics you can jump ahead.

What comes after root?

Your certificate, speedruns and incident drills, the daily puzzle, command golf, and more discs. They are open JSON, so anyone can write new ones.

Ready to boot?

Your first mission is one command. It takes about a minute.

▶ Play now

Play free — no sign-up for the first levels