# Learn Linux in 8 + 1 Hours

An interactive Linux course for cloud engineers: eight 1-hour core lessons, plus one optional lesson. It is the first course in the learning path and follows the same hands-on format as the [Docker course](../docker/index.html). Each lesson is a self-contained HTML file that opens in a browser and works offline. Lessons 1–7 are available in English. Lessons 8–9 remain available in Chinese while their English editions are in progress.

**Course index:** [English](index.html) · [简体中文](index.ch.html) · **Next course:** [Bash in 8 Hours](../bash/index.html) · [Learning path](../../index.html)

| Hour | Lesson | Topics |
|---|---|---|
| 1 | [Core Linux Fundamentals](linux-h1.html) | The kernel, user space, and distributions; the shell and Filesystem Hierarchy Standard (FHS); what happens when a command runs (`fork`/`exec`); permissions, ownership, and ACLs; users, groups, and `sudo` (including `sudo-rs`); processes, signals, and job control; `apt`/deb822, `dnf`, and repositories; text processing with `grep`, `sed`, `awk`, and pipelines |
| 2 | [System Administration and Production Readiness](linux-h2.html) | `systemd` units, services, and dependencies; a hardened, sandboxed `myapp.service`; `journald`, `rsyslog`, and log rotation; disks, LVM, and filesystems; mounts, `fstab`, and swap; networking with `ip`, `ss`, routing, and DNS; SSH hardening; `cron`, systemd timers, and time synchronization with `chrony` |
| 3 | [Linux on Azure](linux-h3.html) | Images and VM sizing; `cloud-init` at first boot; managed and temporary disks; managed identities and IMDS; Entra ID sign-in, SSH, and Bastion; Azure Monitor Agent; Update Manager; serial-console troubleshooting |
| 4 | [Linux on AWS](linux-h4.html) | Amazon Linux 2023 and AMIs; user data, `cloud-init`, and IMDSv2 hop limits; EBS and NVMe; Session Manager and EC2 Instance Connect; CloudWatch Agent; Patch Manager and versioned repositories; the EC2 serial console |
| 5 | [Image Builds, Patching, and Logging](linux-h5.html) | Operations scripting (with Bash details in the Bash course); Packer and HCL; building golden images for Azure and AWS; image generalization, hardening, and versioning; unattended upgrades and maintenance windows; configuration drift and Ansible; centralized logging with `journald` and `rsyslog` |
| 6 | [Security Hardening and Kernel Mechanisms](linux-h6.html) | Hardening baselines (USG, OpenSCAP, Lynis); SELinux and AppArmor; `nftables`, `firewalld`, and `ufw`; PAM, SSH certificates, and `sudo` policy; `auditd`; `sysctl` and resource limits; namespaces, cgroups v2, and systemd sandboxing |
| 7 | [Troubleshooting and Performance](linux-h7.html) | The USE method and a 60-second triage; CPU load; memory, OOM, and swap; disk I/O and inodes; network troubleshooting with `tcpdump`; boot failures and rescue mode; `strace`, `perf`, and eBPF; fault-injection exercises |
| 8 | [Advanced Networking, TLS, and PKI](linux-h8.ch.html) | The Linux network stack and network namespaces; bridges, veth pairs, and VLANs; policy routing and NAT; TCP queues and connection tuning; TLS handshakes and certificate chains; a private CA with OpenSSL; ACME renewal and mutual TLS (mTLS) |
| 9 (optional) | [50 Production Incidents and 50 Interview Questions](linux-h9.ch.html) | Common failures across files, permissions, packages, services, logs, storage, networking, cloud Linux, security, performance, and the kernel; 50 interview questions and mock interviews |

**Version baseline** (checked November 17, 2026): Ubuntu 26.04 LTS (kernel 7.0, systemd 259, APT 3.1, Bash 5.3, OpenSSH 10.2; `sudo-rs`, Rust coreutils, and `chrony` by default), with Rocky/AlmaLinux 10.2 and Amazon Linux 2023 as comparison platforms. RHEL 10 and Amazon Linux 2023 use Valkey in place of Redis. Ubuntu Security Guide (USG) CIS profiles do not yet cover Ubuntu 26.04.

## Lab environment

- The local VM is `linuxlab` running Ubuntu Server LTS (Multipass is the recommended option), with the `labadmin` account and `~/linuxlab` as the working directory. An optional RHEL-family comparison VM is named `rhellab`.
- The sample application is the Flask app from the Docker course. This course runs it as a native systemd service: application code in `/opt/myapp/app`, a virtual environment in `/opt/myapp/venv`, configuration in `/etc/myapp/myapp.env`, and the `myapp.service` unit with `WorkingDirectory=/opt/myapp/app` and `SyslogIdentifier=myapp`. Lesson 1 installs it manually; lesson 2 turns it into a service; lessons 3–6 reuse it in cloud VMs and images.
- Azure exercises use resource group `rg-linux-lab`, region `canadacentral`, and VM `vm-linux-lab`. AWS exercises use `ca-central-1` and the `Name=linux-lab` tag. Each cloud lesson documents costs, required permissions, risks, and cleanup steps.
- Lesson 7's fault-injection tools live in `~/linuxlab/faults/`. They run only when the hostname is `linuxlab`; disk-failure exercises use a loopback disk rather than filling the system disk.

## Scope and limitations

- Commands are based on distribution documentation, man pages, upstream source, and cloud-provider documentation. They have not all been run on real Ubuntu 26.04 hosts (except for the `set -e` example in lesson 5); outputs marked as examples use illustrative values.
- Error messages that could not be verified are labeled as examples and may vary by system. The lessons call out known behavior differences in Rust coreutils and `sudo-rs`.
- The video sections list English-language videos whose titles and channels were verified with YouTube oEmbed. Other topics include storyboard scripts. Chinese narration uses the browser's built-in speech synthesis.
