Skip to content

Learn Linux: Four Levels From Beginner to Ninja, Plus Vim

Learn Linux grew from 16 lessons to 66 in four levels, from your first command to fixing a broken server, with a practice Vim and a printable cheat sheet.

Updates··10 min read

Learn Linux now has four levels: Beginner, Intermediate, Advanced and Ninja. That's 66 short lessons, about nine hours in all, taking you from your first ls to bringing a broken web server back to life. Vim runs through three of the levels, from "how do I get out of this" to macros and Neovim, and there's a new printable cheat sheet. Every lesson still has a practice terminal right in the page that checks your work as you type. It's free, there's no account, and nothing you type leaves your browser. It has been live since November 20.

Lesson 58 ends when the shop answers againThe last check of a Ninja lesson, typed into the practice terminal
Illustration by Binary Decimal

Until this release the course was one set of 16 beginner lessons called "Linux command line basics." Those lessons are still the start. Everything after them is new.

Four levels, 66 lessons

Each level builds on the one before, and each ends with a challenge that uses everything in it.

Level Lessons About After it, you can
Beginner 16 1 h 42 min find your way around and manage files
Intermediate 16 1 h 50 min work comfortably day to day
Advanced 17 2 h 37 min automate things and run a server
Ninja 17 2 h 46 min fix things nobody explained to you
  • Beginner is for someone who has never opened a terminal: pwd, ls and cd, making, copying and deleting files, permissions, pipes, grep and find. It ends with tidying up a messy folder.
  • Intermediate covers the everyday tools: less, links, disk space with df and du, tar archives, cut, tr and sed, variables and $( ), aliases, processes and background jobs, your first Vim session, and ping, curl, ssh and scp. The challenge is shipping a café's new menu.
  • Advanced is where you start writing scripts: if and exit codes, loops, functions, awk, find -exec and xargs. Then running a server: users and sudo, systemctl and journalctl, cron, apt, ports, DNS with dig, a ufw firewall and SSH keys. The challenge is automating a nightly backup.
  • Ninja has 13 lessons and four "something broke" challenges. The lessons cover pipelines with tee and pipefail, process substitution, debugging scripts with bash -x and trap, top and lsof, a website that's down, DNS trouble, refused versus timed-out connections, reading a tcpdump capture and SSH tunnels.

Each level has its own page that says what it covers and what you should already know before starting it. The course page shows your progress across all four:

The Learn Linux course page with saved progress: 25 of 66 lessons and a "Continue: lesson 26" button above a dotted progress bar split into Beginner, Intermediate, Advanced and Ninja. Below it, Four levels: Beginner, 16 lessons, about 1 h 42 min, "Find your way around and manage files", ticked with 16 of 16 done. Intermediate, 16 lessons, about 1 h 50 min, "Work comfortably day to day", marked "You are here" with 9 of 16 done. Advanced, 17 lessons, about 2 h 37 min, "Automate things and run a server", 0 of 17. Ninja, 17 lessons, about 2 h 46 min, "Fix things nobody explained to you", 0 of 17. Each of the last three lists what you should know before you start it. At the bottom, "Not sure where to start?" with a "Try 8 quick tasks" button.

How a lesson works

A lesson is a split screen. On one side are the lesson text, your task, hints and a cheat sheet for the commands it teaches. On the other is a terminal. You read a little, type the commands, and the task list ticks itself off as you go. Example commands in the text have a Run button if you'd rather not type them.

The Ninja lesson "The website is down: find out why, one layer at a time", lesson 58 of 66, 9 minutes. On the left, the lesson text with tabs for Lesson, Tasks (2 of 3), Hints and Cheatsheet, a "1. What exactly fails?" section and a curl -I http://web/ example with a Run button. On the right, the task list with two of three steps ticked, "See how it fails from your laptop" and "Check nginx on web", and "The shop answers again, and you are back on your laptop" still open. Below it the practice terminal, logged in to the pretend server web after a note that no password is asked for or sent. systemctl status nginx shows the service inactive (dead) since 08:53, with log lines ending "Stopped nginx.service".

That lesson is a good example of the Ninja level. You're told the shop at http://web/ is down, and nothing else. curl on your laptop says it couldn't connect. You ssh web, find that nginx has stopped, start it with sudo, then go back to your laptop and check again, because a fix only counts when it works from where the user is.

A few things make the lessons forgiving:

  • Hints come one at a time. The Hints tab shows hint 1, then hint 2, and only then the answer, with Run buttons beside each line.
  • Common mistakes get their own hint. Type systemctl start nginx on the server without sudo and, under the real error (Interactive authentication required), the lesson explains that starting a service changes the system, so it needs sudo.
  • Reset puts everything back. The files and the pretend servers return exactly as the lesson started, which makes it a safe place to try rm -r, kill -9 and firewall rules.
  • It works on a phone. Below laptop width, a Lesson and Terminal switch shows one at a time. The terminal also has a dark mode and bigger or smaller text.

Your finished lessons are saved in this browser, and the course page picks up where you left off. The commands you type are never saved.

Vim, from "how do I get out" to macros

Sooner or later a command like git commit drops you into Vim, often on a machine where nobody chose another editor. In the practice terminal, crontab -e opens it too. So the course teaches Vim in nine lessons spread over three levels, all in a practice Vim that opens inside the terminal when you type vi, vim or nvim.

  • Intermediate: open a file, type and save, and how to exit Vim, including what E37: No write since last change (add ! to override) means.
  • Advanced: moving by word, line and search, operators such as dw, cw and ci" with the dot command, and search and replace with :%s.
  • Ninja: macros, registers and marks, splits and buffers, and Neovim with a config in Lua.

The practice Vim behaves like the real one where it matters for learning: modes, counts, undo, registers, real error messages. Press Ctrl+C and it tells you Type :qa and press <Enter> to exit Vim, just like Vim. On a phone, a row of keys your keyboard hides sits under the editor: Esc, a sticky Ctrl, :, / and the arrows.

The practice Vim open on settings.txt in the Vim macros lesson, lesson 54. The first three lines now read HOST=db.internal, PORT=5432 and USER=shop. The cursor sits on line 4, "database shop_live", with "pool_size 10", "timeout_seconds 30" and "log_level info" still to change. The status line reads "settings.txt [+]", 4,5 and All. Above the editor the task list has "Record a macro" and "Play it" ticked and "Every line is NAME=value, saved" still open.

That's the macros lesson halfway through. You record qa0gUiwf r=jq once, which turns host db.internal into HOST=db.internal and moves down a line, then play it with 2@a. Two more lines changed, four to go. 10@a would finish the file, because the macro stops when it runs out of lines.

Things break on purpose

The Ninja level ends with four "something broke" challenges. Each gives you a goal and a broken system, and finding out why is your job:

  1. The shop's API answers 500. Get it answering again, and leave the server's disk with room to spare.
  2. The web server won't start. Get it back with a config that nginx -t passes.
  3. ls says "command not found", and something is eating the CPU. Fix it in this terminal and in new ones, and stop the runaway process.
  4. The final challenge: the shop is broken in three places at once, and has to answer from your laptop again.

You find the causes with tools from across the course: curl, ssh, systemctl, journalctl, df, top and the rest. Troubleshooting is hard to practise, because nobody wants to hand a learner a real broken server. Here the server lives in the page, and Reset brings it back.

Not sure where to start?

If you already know some Linux, the course page has a placement check: eight quick tasks in a terminal, a few minutes in all. List hidden files, copy a file into a new folder, count the 404s in a log, pack a folder into a .tar.gz, add a line to a file in Vim. Do the ones you can, skip the rest, and it suggests a level. The tasks cover Beginner and Intermediate skills, so if you do all eight it sends you to Advanced.

A cheat sheet and 67 command pages

The Linux commands cheat sheet puts 69 everyday commands on one page, in ten groups: files and folders, viewing files, searching, text, permissions, processes, networking, archives and disk space, the shell itself, and Vim basics. Each has one line on what it does and a short example. A Try button puts the example into a practice terminal on the same page, and a link takes you to the lesson that teaches it. It also prints as a compact sheet for your desk.

The Linux Commands Cheat Sheet. Under the title, an "Open a practice terminal" button, a Print button, and links to the ten groups from Files and folders to Vim basics. The Files and folders card lists pwd, ls -la, cd projects, mkdir -p notes/2026, touch todo.txt, cp report.txt copy.txt, mv draft.txt final.txt, rm old.txt, rm -r build and ln -s notes.txt latest.txt, each with a few words on what it does, a link to the lesson that teaches it (Lesson 1, Lesson 4, Lesson 18 and so on) and a Try button. The Viewing files card lists cat, less, head, tail, wc -l and diff -u the same way.

Behind it are 67 command pages, such as the awk command, up from 17. Each starts with a one-line answer, then the options people actually use with worked examples, a terminal to try them in, and the lesson that teaches the command.

What it isn't

The terminal is a simulation written for these lessons, not a real Linux machine. It has more than a hundred commands, from ls and grep to tar, awk, ps and systemctl, with the same options, output and error messages as GNU/Linux. But it can't install real software or reach the internet: apt and the network are pretend, and the lessons never need more.

A few other limits are worth knowing. The servers follow Ubuntu, so you learn apt and ufw rather than dnf or firewalld. The practice Neovim reads a small part of Lua, options and key mappings, and tells you line by line what it doesn't support, so there are no plugins. And progress lives in one browser: it's included when you back up your data, but if you clear your site data without a backup, it's gone.

If you came here from a "Permission denied", our guide to reading ls -l and fixing it with chmod uses the same practice shell.

Try it

Open Learn Linux and start lesson 1, or take the eight-task placement check and jump in at your level. If Vim is the thing that scares you, lesson 29 takes six minutes, and after it you won't be stuck in Vim again.

updateslinuxcommand linevimlearningshell

Share this post