cd ~/tutorials/linux

Linux Tutorial

Learn Linux for DevOps from zero: the filesystem, the shell, files and text, permissions, users, processes, systemd, networking, storage, Bash scripts, packages, cron, SSH keys, firewalls, logs and performance troubleshooting.

19 lessons · 277 min

Start the course →

This course takes you from “what is a kernel?” to running and troubleshooting a real Linux server with confidence. All along you look after Orbit, the small notes app from the other courses on this blog: you explore its server, give its files the right owners, run its API as a systemd service, open only the ports it needs, schedule its backups and find out why it is slow.

Every command runs on a free Ubuntu 26.04 LTS lab machine that you set up in lesson 1, in a few minutes, on Windows, macOS or Linux. Where Red Hat family distributions (RHEL, Rocky, Alma, Fedora) or Alpine do things differently, the lesson shows both.

Before you start: you need nothing but a computer you can install software on. No Linux experience is assumed. If you plan to take the Docker Tutorial or the Kubernetes Tutorial, do this course first: containers and clusters are Linux underneath.

Each lesson has commands you can copy, short exercises to check what you learned and answers to the questions people ask most. The course targets the Linux you meet on servers in 2026: systemd everywhere, ip and ss instead of ifconfig and netstat, nftables behind the firewall tools and SSH keys instead of passwords.

ls ./lessons

  1. Introduction to LinuxWhat Linux actually is, how the kernel, the distribution and the shell fit together, why almost every server, container and CI runner runs it, which distributions matter in 2026 and how to set up the free lab machine you will use for the rest of the course.beginner13 min readCompleted
  2. The Linux FilesystemHow Linux arranges every file, disk and device in one tree under /, what each standard directory is for on a server, why Orbit's files live where they do, and how /proc and /sys let you read the kernel's mind.beginner13 min readCompleted
  3. Navigating the ShellMove around a Linux server with confidence: read the prompt, use pwd, cd and ls with the flags that matter, let tab completion and history type for you, master the editing shortcuts and find help without leaving the terminal.beginner12 min readCompleted
  4. Working with Files and DirectoriesCreate, copy, move, link, find, edit, archive and delete files on a Linux server without nasty surprises, from mkdir -p and cp -a to symlinked releases, find -exec, the vim survival kit, tar with zstd and sha256sum checks.beginner14 min readCompleted
  5. Text Processing and PipesHow Linux commands pass text through stdin, stdout and stderr, how to redirect and pipe it, and how grep, sort, uniq, cut, tr, sed, awk, xargs and jq turn a raw nginx log into answers in one line.beginner15 min readCompleted
  6. File Permissions and OwnershipHow Linux decides who may read, write or run a file, how to set modes with chmod, owners with chown, defaults with umask, shared folders with setgid and exceptions with ACLs, and how to debug "Permission denied" fast.beginner14 min readCompleted
  7. Users, Groups and sudoHow Linux identifies users and groups, what lives in /etc/passwd, /etc/shadow and /etc/group, how to create service and human accounts, manage group membership, lock and remove users safely and grant least-privilege sudo rules.intermediate15 min readCompleted
  8. Processes and SignalsHow Linux runs programs as processes, how to list, inspect and prioritise them, what process states and zombies mean, how jobs and signals work, and how to find which process holds a file or a port.intermediate16 min readCompleted
  9. systemd ServicesHow systemd starts and supervises everything on a modern Linux server, how to manage units with systemctl, and how to write, harden, limit and troubleshoot your own service unit for the Orbit API.intermediate14 min readCompleted
  10. Linux Networking EssentialsHow to read interfaces, addresses, routes, DNS and listening ports on a Linux server with ip, ss, dig and resolvectl, how to test connectivity properly, and how to troubleshoot an unreachable service layer by layer.intermediate16 min readCompleted
  11. Disks, Filesystems and StorageHow Linux names disks, how to see what is using space, create and mount filesystems safely, write fstab entries that survive reboots, grow LVM and cloud volumes, add swap and work through a real "disk full" incident.intermediate15 min readCompleted
  12. Bash ScriptingWrite Bash scripts that fail loudly instead of silently: variables and quoting, arguments, exit codes, strict mode, tests, loops, functions, here-docs, traps and shellcheck, ending with a production-ready backup script for Orbit's data and configuration.intermediate13 min readCompleted
  13. Package ManagementHow Linux installs and updates software from signed repositories: apt and dpkg on Ubuntu, holding and pinning versions, adding vendor repositories safely, automatic security updates, reboots after kernel updates, and the dnf and apk equivalents.beginner13 min readCompleted
  14. Environment Variables and Shell ConfigurationHow shell and environment variables work, how PATH decides which program runs, which startup file to edit, how services, cron and sudo see a different environment, and how to handle secrets without leaking them into logs, history or Git.beginner14 min readCompleted
  15. Scheduling with cron and systemd TimersHow to run jobs on a schedule with cron and with systemd timers, read and test schedule expressions, give jobs the right paths and logs, stop runs from overlapping and notice when a nightly job silently stopped running.intermediate14 min readCompleted
  16. SSH Keys and Secure Remote AccessHow SSH proves who the server is and who you are, how to create and protect ed25519 keys, use ssh-agent and ~/.ssh/config with a bastion, copy files, harden sshd without locking yourself out and give CI a restricted deploy key.intermediate15 min readCompleted
  17. Firewall Basics with ufw, firewalld and nftablesHow a host firewall decides which packets reach your services, how to lock down Orbit's servers with ufw on Ubuntu and firewalld on Rocky, how to read the real nftables ruleset, and how to change rules without locking yourself out.intermediate17 min readCompleted
  18. Logs with journald and logrotateWhere Linux keeps its logs, how to query the systemd journal by service, time, priority and boot, how to keep log files from filling the disk with logrotate, and how to trace an unexplained Orbit restart back to its cause.intermediate16 min readCompleted
  19. Performance Monitoring and TroubleshootingA repeatable method for answering "why is the server slow?": the USE method, a first-60-seconds checklist, reading CPU, memory, disk and network signals, pressure stall information, tracing with strace, perf and eBPF, and a full Orbit incident from symptom to cause.advanced18 min readCompleted

↑ ↓ navigate Enter open Esc close