Learn / Linux
Linux module · Free · From zero to expert

Linux, from zero.

12 sections, 74 parts. Every part is a detailed lesson, a hands-on lab on your own Linux machine, and a quiz: learn a topic, practise it, check yourself, then move on.

12sections
74parts
~28hlearning + labs (live parts)
25hands-on labs live
25parts live
Every part Learn: the topic in depth, every command explained, real output Lab: tasks on your own Linux machine, checked automatically Quiz: make sure it stuck
01

Getting Started

What Linux is, your first commands, the folder tree, and working with files.

3h 10m learn 3h 30m labs · 30 tasks 47 questions
0 of 9 parts done · 8 live, 1 coming soon
01 What is Linux?What an operating system does, what Linux and a "distribution" really are, how the kernel and shell fit together, and why every DevOps engineer works with Linux every day. Lab: Which kernel? · Which distribution? · Which shell? · Everything is a file Learn15 min Lab15 min · 4 tasks Quiz5 questions Start
The lab: Meet Your Linux Machine

You've just been given access to a new server. Before installing or changing anything, a good engineer finds out exactly what the machine is: which kernel, which Linux distribution and version, which shell, and how much hardware it has. You'll record each answer in a file.

What you will do
  1. Which kernel?Find the version of the Linux kernel running this machine.
  2. Which distribution?Find which Linux distribution and version this server runs.
  3. Which shell?Find the program that reads the commands you type.
  4. Everything is a fileCount the CPUs by reading a file the kernel creates.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 5-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 1
02 Your First CommandsOpen a terminal, read the prompt, run your first commands and understand their output. Learn how every command is built, where commands come from, how to get help without Googling, and the shortcuts that make you fast. Lab: The prompt and your first commands · How a command is built · Finding help on your own · Work faster Learn25 min Lab25 min · 4 tasks Quiz6 questions Start
The lab: Your First Commands: How the Terminal Works

It's your first day as a junior DevOps engineer, and your team lead has given you SSH access to a Linux server. Before touching anything important, you will get comfortable with the terminal: find out who and where you are, learn to read any command, look things up without Googling and use the shortcuts every engineer relies on.

What you will do
  1. The prompt and your first commandsFind out who you are and which machine you are on, and save both answers to a file.
  2. How a command is builtList every file in the practice folder, hidden ones included, with full details.
  3. Finding help on your ownUse the built-in help to find the ls option that sorts by time.
  4. Work fasterUse history and shortcuts, then save your command history to a file.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 2
03Working in the Shell: History, Completion, Aliases and QuotingLesson, lab and quiz coming soon Coming soon
04 The Linux Filesystem TreeHow Linux organises every file in one tree starting at /, what each top-level folder is for, absolute and relative paths, moving around with cd, and reading ls output like a pro, including file types you'll meet on every server. Lab: The tree starts at / · Moving with cd and absolute paths · Relative paths · Shortcuts and overviews Learn25 min Lab25 min · 4 tasks Quiz6 questions Start
The lab: Navigating the Filesystem

The shop application runs on this server, and a colleague asks you to check its config, look at its logs and find a code hidden in the company's shared folders. To do that you first need to know how Linux organises its folders and how to move between them quickly without getting lost.

What you will do
  1. The tree starts at /Find the shop app's configuration file and save the port it uses.
  2. Moving with cd and absolute pathsGo to the shop app's log folder.
  3. Relative pathsFollow the clues through the company folders and save the final code.
  4. Shortcuts and overviewsReturn to your home folder and save a map of the company folders.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 4
05 Creating, Copying, Moving & DeletingThe everyday file commands in depth. mkdir and brace expansion, touch and timestamps, cp with its important options, mv for moving and renaming, rm and rmdir, and wildcards, with the safety habits that stop you deleting the wrong thing. Lab: Create folders and files · Copy and back up · Move and rename · Delete safely with wildcards Learn25 min Lab30 min · 4 tasks Quiz6 questions Start
The lab: Create, Copy, Move & Delete Files

The team is starting a new service and needs its project folders set up on the server. Before anyone edits the config you'll back it up, and then you'll tidy up a messy downloads folder full of logs, temporary files and a file name with spaces in it, without deleting anything important.

What you will do
  1. Create folders and filesBuild the folder structure for the new shop project.
  2. Copy and back upBack up the config file and the whole config folder before anyone edits them.
  3. Move and renameCollect all log files into one folder and give the release notes a clean name.
  4. Delete safely with wildcardsRemove the temporary files and the empty folder, and keep everything else.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 5
06 Reading FilesChoose the right tool for every file. Check what a file is with file and stat, print short files with cat, page and search huge logs with less, take the start or end with head and tail, follow live logs with tail -f, count with wc and read compressed logs without unpacking them. Lab: Small files with cat and wc · Big files with less · Just the start or the end · Watch a live log Learn25 min Lab25 min · 4 tasks Quiz6 questions Start
The lab: Viewing Files: cat, less, head, tail

A customer says their payment failed this afternoon, and the support team asks you to look into the shop's logs. The order log has 5,000 lines, far too many to scroll through, and there's a live log that keeps growing while you watch. You'll use the right tool for each job to find the failed order and catch an alert as it happens.

What you will do
  1. Small files with cat and wcCount how many lines the order log has.
  2. Big files with lessSearch the order log page by page and find the failed order.
  3. Just the start or the endSave the 20 most recent orders to a file.
  4. Watch a live logFollow the live log and catch the incident code in the alert.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 6
07 Editing Files: nano and vimEdit files directly on a server. nano for quick changes, then vim properly: its modes, moving, editing, copy and paste, undo, search and replace, visual mode, saving and quitting, swap files, plus how to choose the editor that tools like crontab and git open. Lab: Quick edits with nano · Surviving vim · vim power moves Learn30 min Lab30 min · 3 tasks Quiz6 questions Start
The lab: Editing Files with nano and vim

The shop needs more worker processes, a new setting, and its server list cleaned up after a database migration. All of that means editing files directly on the server, where there's no VS Code, only terminal editors. You'll make the quick change with nano, then learn enough vim to work on any server, because vim is installed everywhere and nano isn't.

What you will do
  1. Quick edits with nanoRaise the shop's worker count to 8 and add a maintenance setting.
  2. Surviving vimCreate a file with vim, write a line in it, save and quit.
  3. vim power movesFix the server list: rename the database everywhere and delete the retired server.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 7
08 Finding FilesFind anything on a server. find by name, type, size, age, owner and permissions, combining conditions, acting on results with -exec and -delete, searching inside files with grep -r, and locating commands with which, type and whereis. Lab: Find by name · Find big files · Find old files and clean up · Search inside files Learn25 min Lab30 min · 4 tasks Quiz6 questions Start
The lab: Finding Files: find, grep -r and which

You've joined the shop team and nobody remembers where anything is. The payments config is buried somewhere in a project tree, the disk is filling up with something big, old logs are piling up, and you need to know which config file points the app at its database. You'll answer all of it from the command line in minutes.

What you will do
  1. Find by nameLocate the payments service's config file and save its full path.
  2. Find big filesList every file larger than 100 MB under /srv/media.
  3. Find old files and clean upDelete the archived logs older than 30 days, and keep the newer ones.
  4. Search inside filesFind which config file sets the database host, and save the host name.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 8
09 Links and InodesHow Linux actually stores files. Inodes, directory entries and link counts, hard links versus symbolic links, how deployments switch releases with a symlink, broken links, running out of inodes, and why deleting a file doesn't always free disk space. Lab: Inodes and hard links · Switch a release with a symlink · Broken links and deleted files Learn20 min Lab30 min · 3 tasks Quiz6 questions Start
The lab: Links and Inodes

The shop's server has a few mysteries. Two report files always change together, the app needs to be switched to its new release without copying anything, an old link points at a folder that no longer exists, and the disk shows 30 MB in use that no file seems to own. Inodes and links explain all of it.

What you will do
  1. Inodes and hard linksFind the two report files that are really the same file.
  2. Switch a release with a symlinkPoint the app's current link at release v1.5 and create a shortcut to its config.
  3. Broken links and deleted filesRemove the broken link and find the process holding a deleted log file.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 9
02

Text Processing

Redirection, pipes, grep, sed and awk, the tools behind every log investigation.

2h 40m learn 3h 05m labs · 23 tasks 34 questions
0 of 7 parts done · 6 live, 1 coming soon
10 Redirection and PipesThe three standard streams and how to redirect each one: > and >>, 2> and 2>&1, /dev/null, < and here-documents. Then pipes, the heart of the Linux command line: chaining small tools, tee, xargs, command substitution and how pipelines report success or failure. Lab: Output into files · Keep errors apart · Pipes · tee and xargs Learn25 min Lab30 min · 4 tasks Quiz6 questions Start
The lab: Redirection and Pipes

Your team lead wants a quick health report for the shop's web server: some basic server facts in a file, a list of config files without the permission errors, the busiest client IP addresses, and every failed request saved for the developers. Then you'll clean up a list of temporary files in one command.

What you will do
  1. Output into filesBuild a small server report file with the hostname, date and uptime.
  2. Keep errors apartSave a list of config files and the permission errors into two separate files.
  3. PipesFind the three IP addresses that sent the most requests.
  4. tee and xargsSave every failed request while counting them, then delete the listed temporary files.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 10
11 Searching Text: grep and Regular Expressionsgrep from the basics to real investigations: every everyday option, searching many files, context lines, regular expressions (anchors, classes, quantifiers, groups), extended and Perl regex, extracting matches with -o, and using grep in scripts. Lab: Everyday grep · Context around a crash · Regular expressions · Extract with -E and -o Learn30 min Lab30 min · 4 tasks Quiz6 questions Start
The lab: Searching Text with grep and Regular Expressions

Support is getting complaints about failed payments, and the shop's application log has 300 lines of noise around the real problems. You'll count the errors, pull out the crash with its stack trace, narrow down to the afternoon's errors, and hand the payments team a clean list of the affected order IDs.

What you will do
  1. Everyday grepCount every line that mentions an error, whatever its case.
  2. Context around a crashSave the out-of-memory error together with its stack trace.
  3. Regular expressionsFind the ERROR lines logged between 14:00 and 17:59.
  4. Extract with -E and -oProduce a sorted list of unique order IDs whose payment failed.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 11
12 Slicing and Counting: cut, sort, uniq, trThe small tools you chain together every day: cut to take columns, sort to order lines by any column, uniq to count and find duplicates, tr to transform characters, plus wc, column and paste. With the classic pipelines that answer real questions about users, logs and data. Lab: Columns with cut · Sorting · Cleaning with tr · Duplicates with uniq Learn25 min Lab30 min · 4 tasks Quiz5 questions Start
The lab: Slicing and Counting: cut, sort, uniq, tr

Three requests land on your desk at once. Security wants to know which accounts can log in with a shell, finance wants this quarter's sales ordered by revenue, and marketing has a signup list full of duplicate emails typed in different cases. Four small tools answer all of them without opening a spreadsheet.

What you will do
  1. Columns with cutList the user accounts whose login shell is /bin/bash.
  2. SortingOrder the sales rows by revenue, highest first.
  3. Cleaning with trTurn the messy signup list into a clean, lowercase list of unique emails.
  4. Duplicates with uniqFind the people who signed up more than once.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 5-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 12
13 Editing Streams with sedHow sed works line by line, the substitute command in depth (flags, delimiters, &, capture groups), editing files in place safely, addresses and ranges, deleting, printing, inserting and appending lines, and the sed one-liners used in scripts, Dockerfiles and CI pipelines. Lab: Substitute and edit in place · Replace everywhere · Delete and print lines · Targeted changes Learn25 min Lab30 min · 4 tasks Quiz6 questions Start
The lab: Editing Text Automatically with sed

The shop is moving to a new port and a new database server, and its website still links to plain http:// pages. You need to make these changes the way automation does it, with commands that can go into a script or an Ansible task, not by hand in an editor. sed is the tool for exactly that.

What you will do
  1. Substitute and edit in placeChange the server port to 9090 directly in the file, keeping a backup.
  2. Replace everywhereTurn every http:// link into https://, whatever its case.
  3. Delete and print linesProduce a clean copy of the config without comments or blank lines.
  4. Targeted changesPoint only the database section at the new host, and switch debug mode off.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: intermediate · Hints and a step-by-step walkthrough on every task

Start part 13
14 Working with Columns: awkawk as a small language for column-based text: how it splits lines into fields, pattern-action rules, built-in variables (NR, NF, FS, OFS), comparisons and regex, variables and calculations, BEGIN and END, arrays for grouping, printf formatting, and the awk one-liners DevOps engineers use daily. Lab: Fields and separators · Conditions · Totals and groups · Formatted reports Learn30 min Lab35 min · 4 tasks Quiz6 questions Start
The lab: Working with Columns: awk

Your manager wants four quick reports before the weekly ops meeting: the real human user accounts, the production servers that are actually running, revenue totals per region, and an alert list of disks that are almost full. Each one is a single awk command.

What you will do
  1. Fields and separatorsList the real user accounts with their home folders.
  2. ConditionsList the production servers that are running.
  3. Totals and groupsCalculate the total revenue of each region, highest first.
  4. Formatted reportsProduce an alert line for every disk that is more than 80% full.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: intermediate · Hints and a step-by-step walkthrough on every task

Start part 14
15 Log Analysis in PracticePut grep, sort, uniq, cut and awk together to investigate a real incident from raw logs. Learn the common log formats, a step-by-step investigation method (how bad, since when, who, what), error rates over time, slowest endpoints, rotated and compressed logs, and JSON logs. Lab: How bad is it? · Who is hammering us? · Which endpoints are failing and slow? Learn25 min Lab30 min · 3 tasks Quiz5 questions Start
The lab: Log Analysis on the Command Line: grep, awk, sort, uniq

It's 14:20 and checkout on the shop is failing. The monitoring dashboard is down too, so all you have is the Nginx access log on the web server. The incident channel is waiting for three answers: how bad is it, who is hitting us, and what exactly is broken since when.

What you will do
  1. How bad is it?Count the total requests and how many of them failed with a 5xx error.
  2. Who is hammering us?Find the three IP addresses sending the most requests.
  3. Which endpoints are failing and slow?Identify the broken endpoint and the minute it started failing.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 5-question quiz

Level: intermediate · Hints and a step-by-step walkthrough on every task

Start part 15
16Comparing Files: diff, comm and patchLesson, lab and quiz coming soon Coming soon
03

Users & Permissions

Users, groups, rwx permissions, ownership, special bits, sudo and ACLs.

2h 15m learn 3h 00m labs · 24 tasks 37 questions
0 of 6 parts done
17 Users and GroupsWhy Linux has users, how UIDs and GIDs work, every field of /etc/passwd, /etc/shadow and /etc/group, primary and supplementary groups, service accounts, and the commands to create, change, lock and delete users and groups, including the usermod mistake that locks people out. Lab: Who is on this server? · Create a user · Groups · Lock and remove accounts Learn25 min Lab30 min · 4 tasks Quiz6 questions Start
The lab: Users and Groups

You're handling access requests for the shop's server this week. A new engineer, Priya, is joining the DevOps team, Rohan needs to join the new devops group without losing his other access, a contractor's work has ended, and last summer's intern still has an account. You'll handle each one the way it should be done on a real server.

What you will do
  1. Who is on this server?Find out which account uses the user ID 1505.
  2. Create a userCreate Priya's account with a home folder, bash, her full name and a password.
  3. GroupsCreate the devops group and add Rohan and Priya without removing Rohan's other groups.
  4. Lock and remove accountsLock the contractor's account and delete the old intern's account with its home folder.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 17
18 File PermissionsHow Linux decides who may read, change or run a file: the 10-character permission string, owner/group/others, what r, w and x mean on files versus directories, numeric modes like 644 and 755, symbolic and numeric chmod, recursive changes with capital X, and how to debug 'Permission denied'. Lab: Read permissions · Symbolic chmod · Numeric chmod · Directory permissions Learn25 min Lab30 min · 4 tasks Quiz7 questions Start
The lab: File Permissions: rwx and chmod

A security scan flagged the shop's application folder: a config file with a database password is writable by everyone, the API key file is readable by everyone, and the deploy script won't even run. On top of that, the developer account can't open the reports folder it needs. You'll fix all of it with chmod.

What you will do
  1. Read permissionsFind every file in /srv/shop that anyone on the system can write to.
  2. Symbolic chmodMake the deploy script runnable, and take write access away from everyone else.
  3. Numeric chmodSet exact permissions on the secret files and the script with octal modes.
  4. Directory permissionsLet the dev user list and read the reports, without being able to change them.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 7-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 18
19 Ownership and umaskWho owns a file and why it matters: owner and group IDs, chown and chgrp with every common form, what normal users can and can't change, service accounts owning their files, shared team folders, orphaned files after a user is deleted, and how umask decides the permissions of every new file. Lab: Give the app its files · A shared team folder · Orphaned files · Default permissions with umask Learn20 min Lab30 min · 4 tasks Quiz6 questions Start
The lab: Ownership and umask

The shop's app was copied onto the server as root, so its service account can't even write its own log. The DevOps team's shared folder doesn't let the team write, a deleted engineer left files owned by a bare number, and Priya keeps creating files her teammates can't edit. You'll fix ownership and defaults the right way.

What you will do
  1. Give the app its filesMake the appsvc service account the owner of everything under /srv/app.
  2. A shared team folderLet every member of the devops group create files in /srv/team, and nobody else.
  3. Orphaned filesFind the files a deleted user left behind and hand them to rohan and the devops group.
  4. Default permissions with umaskMake the files Priya creates group-writable by default.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 19
20 SUID, SGID and the Sticky BitThe three special permission bits: how SUID lets passwd change /etc/shadow, why a SUID copy of the wrong program hands out root, SGID programs and SGID team folders, the sticky bit on /tmp, the four-digit modes 4755, 2775 and 1777, capital S and T, and how to audit a server for them. Lab: Audit SUID programs · Remove a dangerous SUID · SGID on a shared folder · The sticky bit Learn20 min Lab30 min · 4 tasks Quiz6 questions Start
The lab: SUID, SGID and the Sticky Bit

A security review of the shop's server turned up three problems. Someone made a copy of cat run as root so they could read logs, and now any user can read the password hashes. Files in the team's shared folder keep ending up with each person's private group. And in the public drop folder, anyone can delete anyone else's uploads. The three special permission bits fix all of it.

What you will do
  1. Audit SUID programsList every SUID program on the system and spot the one that shouldn't be there.
  2. Remove a dangerous SUIDStop the rogue log viewer from running as root.
  3. SGID on a shared folderMake every file created in /srv/shared belong to the devops group.
  4. The sticky bitLet everyone use /srv/dropbox, but only delete their own files.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: intermediate · Hints and a step-by-step walkthrough on every task

Start part 20
21 sudo: Admin Rights, SafelyWhy you shouldn't log in as root, how sudo works, the sudo vs su difference, every part of a sudoers rule, the sudo and wheel groups, least-privilege rules in /etc/sudoers.d, NOPASSWD, running as other users with sudo -u, visudo and how not to lock yourself out, and the sudo rules that secretly give away root. Lab: Who can become root? · A new admin · One command, nothing more · Acting as a service account Learn25 min Lab30 min · 4 tasks Quiz6 questions Start
The lab: sudo: Admin Rights, Safely

It's access review week on the shop's server. Last summer's intern can still become root without a password, Rohan has just been promoted to the on-call admin rota, the support team keeps asking for root to restart the shop, and developers need to inspect the app's data files, which only the app's service account can read. You'll set all of it up with sudo, giving each person exactly what they need.

What you will do
  1. Who can become root?Find and remove the rule that gives a former intern passwordless root.
  2. A new adminGive Rohan full sudo rights, the standard Ubuntu way.
  3. One command, nothing moreLet Anita run the shop restart script as root, and nothing else.
  4. Acting as a service accountLet the devops group run commands as appsvc without a password, but not as root.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: intermediate · Hints and a step-by-step walkthrough on every task

Start part 21
22 Access Control ListsWhen owner/group/others can't express what you need: ACL entries for extra users and groups, getfacl and setfacl, the + in ls -l, default ACLs that new files inherit, the mask and #effective, revoking access, backing up ACLs, and when to use ACLs versus groups. Lab: Access for one user · A second group on a folder · Default ACLs · Revoke and back up Learn20 min Lab30 min · 4 tasks Quiz6 questions Start
The lab: Access Control Lists

An external auditor, Meera, needs to read the Q3 finance report, and only that report: not payroll, and she must not join the finance group. The support team needs to write tickets into a folder owned by the ops team, and each new ticket must be editable by the whole support team. Owner, group and others can't express this. ACLs can.

What you will do
  1. Access for one userLet Meera read the Q3 report, and nothing else in /srv/finance.
  2. A second group on a folderLet the support group create files in /srv/tickets, which belongs to ops.
  3. Default ACLsMake every new ticket editable by the whole support team.
  4. Revoke and back upRemove Meera's access when the audit ends, and save a backup of the tickets ACLs.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: intermediate · Hints and a step-by-step walkthrough on every task

Start part 22
04

Processes & System

What is running, how to control it, and how to watch CPU, memory and load.

1h 55m learn 2h 30m labs · 20 tasks 30 questions
0 of 6 parts done · 5 live, 1 coming soon
23 ProcessesWhat a process is, how PIDs, parents and the process tree work, how fork and exec start every command, process states (R, S, D, T, Z), reading ps aux and ps -ef column by column, sorting and custom columns, pgrep, pidof and pstree, looking inside a process through /proc, and zombies and orphans. Lab: Find the CPU hog · Parents and children · Inside a process with /proc · The zombie Learn25 min Lab30 min · 4 tasks Quiz6 questions Start
The lab: Processes: What Is Running?

Users report that the shop's server feels slow, and you're on call. Something is burning CPU, nobody remembers what the app's workers belong to, and the monitoring dashboard says there's a zombie process. You'll investigate everything without stopping anything yet: first understand, then act.

What you will do
  1. Find the CPU hogFind the process using the most CPU and record its PID.
  2. Parents and childrenFind out which process started the three shop workers.
  3. Inside a process with /procFind which file the report generator is writing to, without reading its code.
  4. The zombieFind the zombie process and the parent responsible for it.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 23
24 Signals and Job ControlHow Linux tells processes to stop, reload or pause: what signals are, SIGTERM vs SIGKILL and why the order matters, SIGHUP reloads, Ctrl+C and Ctrl+Z, kill, pkill and killall, foreground and background jobs with &, jobs, bg and fg, nohup, disown and tmux, and how systemd, Docker and Kubernetes use signals. Lab: Stop gracefully · Reload without restarting · The last resort · Background jobs Learn25 min Lab30 min · 4 tasks Quiz6 questions Start
The lab: Signals and Job Control

Yesterday you found what was slowing the shop's server down. Today you act: the report generator must stop without losing its work, the API server needs a new worker count without dropping a single request, an export job is stuck and ignores you, and a long backup has to run without tying up your terminal.

What you will do
  1. Stop gracefullyStop the report generator so it saves its partial report first.
  2. Reload without restartingChange the API server's worker count and apply it without restarting the process.
  3. The last resortGet rid of an export job that ignores normal requests to stop.
  4. Background jobsRun the long backup in the background so it keeps going after you log out.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 24
25 Priorities and Resource LimitsHow the scheduler shares the CPU, niceness from -20 to 19, nice and renice, NI vs PRI in ps and top, disk priority with ionice, resource limits with soft and hard values, ulimit, /etc/security/limits.d, systemd's LimitNOFILE, prlimit for running processes, timeout, and how cgroups cap whole services and containers. Lab: Start a job politely · Calm down a running hog · Too many open files · Fix a running process Learn20 min Lab30 min · 4 tasks Quiz6 questions Start
The lab: Priorities and Resource Limits

The shop's server is shared by the website and some heavy batch work. A video encoder is hogging the CPU, a nightly compression job needs to run without slowing customers down, the image service crashes with "Too many open files", and the running API server has the same low limit but can't be restarted during business hours.

What you will do
  1. Start a job politelyRun the compression job in the background at niceness 15.
  2. Calm down a running hogLower the video encoder's priority to the minimum, without stopping it.
  3. Too many open filesRaise the appsvc account's open-file limit so the image service works.
  4. Fix a running processRaise the running API server's open-file limit without restarting it.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: intermediate · Hints and a step-by-step walkthrough on every task

Start part 25
26 Monitoring CPU, Memory and LoadThe first five minutes on a slow server: uptime and what load average really measures, every line of top and its keys, CPU time split into us, sy, wa and st, free and why 'available' matters more than 'free', vmstat for trends, htop, df, a USE-method checklist, and why containers show the host's numbers. Lab: Load and cores · Find the CPU hog in top · Memory · A health-check script Learn25 min Lab30 min · 4 tasks Quiz6 questions Start
The lab: Monitoring CPU, Memory and Load

An alert says the shop's server is slow. Before touching anything, an experienced engineer spends five minutes looking: how busy is the machine, what's using the CPU, how much memory is really left, and is anything waiting on the disk? You'll do exactly that, then save the checks as a script for the next alert.

What you will do
  1. Load and coresRead how busy the server is, and record how many CPU cores it has.
  2. Find the CPU hog in topUse top to find the process using the most CPU.
  3. MemoryWork out how much memory is really free, and which process uses the most.
  4. A health-check scriptSave the checks as a script you can run in the first minute of the next alert.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: beginner · Hints and a step-by-step walkthrough on every task

Start part 26
27 Memory and SwapHow Linux uses RAM: virtual vs resident memory, the page cache, what happens when memory runs out, swap and swappiness, the OOM killer and oom_score_adj, spotting memory leaks, creating a swap file, making swap and sysctl settings permanent, and capping a service's memory with cgroups. Lab: Big or leaking? · Contain the damage · Create a swap file · Make it permanent Learn20 min Lab30 min · 4 tasks Quiz6 questions Start
The lab: Memory and Swap

Last night the shop's server ran out of memory and the kernel killed the web app. This morning the memory graph is climbing again. You need to find what's really growing, make sure that if memory runs out the kernel sacrifices the nightly report job instead of the shop, and give the server a swap file as a safety cushion.

What you will do
  1. Big or leaking?Find the process whose memory keeps growing.
  2. Contain the damageStop the leak, and make the report job the OOM killer's first choice.
  3. Create a swap filePrepare a 128 MB swap file.
  4. Make it permanentActivate the swap file at every boot, and make the kernel swap only when it must.
How it works
1Read the lesson on the left of the page
2Start your own Linux machine on the right
3Each task appears right after the topic it uses
4Press Check my work: it's verified on your machine
5Finish with the 6-question quiz

Level: intermediate · Hints and a step-by-step walkthrough on every task

Start part 27
28Inspecting Processes: lsof and straceLesson, lab and quiz coming soon Coming soon
05

Software & Packages

apt and dpkg on Ubuntu and Debian, dnf and rpm on Red Hat systems, and installing software that has no package.

Coming soon
0 of 4 parts done · 0 live, 4 coming soon
29Installing Software with aptLesson, lab and quiz coming soon Coming soon
30dpkg, Packages and RepositoriesLesson, lab and quiz coming soon Coming soon
31The Red Hat Family: dnf, yum and rpmLesson, lab and quiz coming soon Coming soon
32Binaries, Tarballs and Building from SourceLesson, lab and quiz coming soon Coming soon
06

Services & Boot

Running software as reliable services with systemd, reading logs, scheduling and boot.

Coming soon
0 of 5 parts done · 0 live, 5 coming soon
33systemd BasicsLesson, lab and quiz coming soon Coming soon
34Writing systemd ServicesLesson, lab and quiz coming soon Coming soon
35Logs with journalctlLesson, lab and quiz coming soon Coming soon
36Scheduling with systemd TimersLesson, lab and quiz coming soon Coming soon
37The Boot Process and TargetsLesson, lab and quiz coming soon Coming soon
07

Storage

What fills the disk, disks and partitions, filesystems and mounting, LVM and disk performance.

Coming soon
0 of 5 parts done · 0 live, 5 coming soon
38Disk Space and CleanupLesson, lab and quiz coming soon Coming soon
39Disks and PartitionsLesson, lab and quiz coming soon Coming soon
40Filesystems, Mounting and fstabLesson, lab and quiz coming soon Coming soon
41LVM: Flexible StorageLesson, lab and quiz coming soon Coming soon
42Disk I/O and PerformanceLesson, lab and quiz coming soon Coming soon
08

Networking

IP addresses and routes, ports and connections, HTTP, DNS, and finding out why a network call fails.

Coming soon
0 of 6 parts done · 0 live, 6 coming soon
43Network Basics: IPs, Ports and InterfacesLesson, lab and quiz coming soon Coming soon
44Network Configuration: ip, Routes and netplanLesson, lab and quiz coming soon Coming soon
45Ports and Connections: ss and lsofLesson, lab and quiz coming soon Coming soon
46HTTP and curlLesson, lab and quiz coming soon Coming soon
47How DNS WorksLesson, lab and quiz coming soon Coming soon
48Network Troubleshooting: ping, traceroute, nc and tcpdumpLesson, lab and quiz coming soon Coming soon
09

SSH & Remote Access

How SSH works, keys, the client config and agent, securing the SSH server, tunnels, jump hosts and copying files.

Coming soon
0 of 6 parts done · 0 live, 6 coming soon
49SSH Basics: Connecting to a ServerLesson, lab and quiz coming soon Coming soon
50SSH KeysLesson, lab and quiz coming soon Coming soon
51SSH Config, Agent and Jump HostsLesson, lab and quiz coming soon Coming soon
52Securing the SSH ServerLesson, lab and quiz coming soon Coming soon
53SSH Tunnels and Port ForwardingLesson, lab and quiz coming soon Coming soon
54Copying Files: scp, sftp and rsyncLesson, lab and quiz coming soon Coming soon
10

Shell Scripting & Automation

From your first script to production-quality automation: input, conditions, loops, functions, arrays, debugging, cron and backups.

Coming soon
0 of 10 parts done · 0 live, 10 coming soon
55Environment Variables and Shell ConfigLesson, lab and quiz coming soon Coming soon
56Bash Scripting BasicsLesson, lab and quiz coming soon Coming soon
57Variables, Arguments and User InputLesson, lab and quiz coming soon Coming soon
58Conditions and LoopsLesson, lab and quiz coming soon Coming soon
59Functions and Error HandlingLesson, lab and quiz coming soon Coming soon
60Arrays and String HandlingLesson, lab and quiz coming soon Coming soon
61Debugging Scripts: set -x and shellcheckLesson, lab and quiz coming soon Coming soon
62Real-World Automation ScriptsLesson, lab and quiz coming soon Coming soon
63Scheduling Jobs with cronLesson, lab and quiz coming soon Coming soon
64Archives and BackupsLesson, lab and quiz coming soon Coming soon
11

Security & Hardening

Firewalls, blocking brute-force attacks, AppArmor and SELinux, auditing who did what, and keeping servers patched.

Coming soon
0 of 5 parts done · 0 live, 5 coming soon
65Firewalls: ufw, iptables and nftablesLesson, lab and quiz coming soon Coming soon
66Stopping Brute-Force Attacks: fail2banLesson, lab and quiz coming soon Coming soon
67AppArmor and SELinuxLesson, lab and quiz coming soon Coming soon
68Auditing: Who Did What, and WhenLesson, lab and quiz coming soon Coming soon
69Keeping Servers PatchedLesson, lab and quiz coming soon Coming soon
12

System Administration & Troubleshooting

Time and NTP, the kernel and sysctl, log files, performance problems, and bringing a broken server back to life.

Coming soon
0 of 5 parts done · 0 live, 5 coming soon
70Time, Time Zones and NTPLesson, lab and quiz coming soon Coming soon
71The Kernel, Modules and sysctlLesson, lab and quiz coming soon Coming soon
72Log Files and logrotateLesson, lab and quiz coming soon Coming soon
73Performance TroubleshootingLesson, lab and quiz coming soon Coming soon
74Troubleshooting a Broken ServerLesson, lab and quiz coming soon Coming soon
Feedback