Skip to content

Linux command line basics

Sixteen short lessons, each with a practice terminal right in the page. Read a little, type the commands, and the lesson checks your work as you go. Nothing to install, and nothing you type leaves your browser.

Key facts

  • 16 lessons of 4 to 10 minutes, about 1 h 42 min in all.

Your progress

0 of 16 lessons

Start lesson 1 →

The lessons

Practice terminal

No task, no checks: a home directory full of sample files to try anything on. Type ls to look around, or help for every command.

learner@sandbox: ~bash (practice)
Note: Free practice. Your home directory has sample files and folders to try commands on.

Command reference

Each command’s options, with examples you can run in a terminal on the page.

Frequently Asked Questions

Do I need Linux installed to do these lessons?

No. Each lesson has a practice terminal that runs in your browser on any computer or phone, with its own set of files. It behaves like bash on a Linux system for the commands the lessons teach, and nothing you type is sent anywhere.

Is this a real Linux terminal?

It is a simulation written for these lessons: a small shell with an in-memory filesystem and the everyday commands (ls, cd, cat, cp, mv, rm, mkdir, grep, find, chmod, sort, wc and more), with the same options, output and error messages as GNU/Linux. It can’t install software or reach the internet, and the lessons never need it to.

How long does the course take?

The 16 lessons take 4 to 10 minutes each, about an hour and three quarters in all. You can stop at any point: finished lessons are remembered in this browser.

Where is my progress saved?

In this browser only, like everything else on the site. It is included when you back up your data at /backup, and syncs to your other devices if you have set up sync. The commands you type are never saved.

What if I break something in the practice terminal?

Press Reset lesson and the lesson’s files come back exactly as they started. That makes it a safe place to try rm -r and wildcards before using them on a real computer.