Linux

Intermediate · Roadmap · 64 lessons · 10 groups

Learn Linux from the administrator's seat: the kernel and distributions, boot, users and access control, packages, systemd and logs, processes and memory, storage, networking, security hardening, and performance work.

0%

Not started

Nothing saved yet. Progress is kept in this browser until you sign in.

Start the path

What Linux is · 5

Boot and the kernel · 6

Users and access control · 6

Software and packages · 6

Services and logs · 6

Processes, memory and resources · 7

Disks, filesystems and storage · 7

Networking · 7

Security and hardening · 7

Performance and troubleshooting · 7

01What Linux is: the kernel and the distributionWhy "Linux" names three different things: a kernel, the userland built around it, and the distribution that packages both into a system you can install.Beginner · 7 min02Distributions and release modelsDebian, Ubuntu, the RHEL family, Arch and Alpine compared by how they release and how long they are supported, and how to pick one for a server.Beginner · 21 min03Getting a Linux machine to practice onA local VM, WSL2, a cloud instance or a container shell: what each one gives you, what it hides, and why snapshots make breaking things cheap.Beginner · 10 min04The filesystem hierarchyWhy Linux puts files where it does: /usr for the OS, /etc for config, /var for state, /run for runtime, the merged /usr, and why /tmp is now often RAM.Beginner · 4 min05Kernel space, user space and system callsThe privilege boundary every Linux program crosses, how system calls work under the C library, why some skip the kernel via the vDSO, and whose bug it is.Intermediate · 6 min01From firmware to bootloader: UEFI and GRUBWhat happens between power-on and the kernel: BIOS versus UEFI, the EFI system partition, Secure Boot with shim, regenerating GRUB's config, and systemd-boot.Intermediate · 16 min02The kernel command line and initramfsHow the bootloader passes parameters to the kernel, how to read and change them, and how the initramfs finds and mounts the real root filesystem.Intermediate · 17 min03systemd as PID 1 and boot targetsWhat the first process does, how systemd targets replaced runlevels, how to choose the default target, reach rescue or emergency mode, and find slow boots.Intermediate · 9 min04Kernel modules and driversHow Linux loads drivers as modules on demand: lsmod, modinfo and modprobe, module options, why blacklisting is weaker than it sounds, and DKMS.Intermediate · 15 min05udev and device filesWhat a device file is, what major and minor numbers mean, how udev reacts to hardware events, and why you should mount disks by UUID, not /dev/sdb.Intermediate · 10 min06/proc, /sys and tuning with sysctlThe kernel's /proc and /sys as a live interface, how sysctl reads and writes /proc/sys, how sysctl.d makes changes stick, and a few knobs worth knowing.Intermediate · 5 min01Users, groups and the account filesHow Linux identifies users and groups by number, what /etc/passwd, /etc/shadow and /etc/group hold, system versus human accounts, and NSS lookups.Beginner · 1 min02Managing accounts and passwordsCreating, changing, locking and removing accounts with useradd, usermod, passwd and chage, and the defaults in /etc/login.defs and /etc/skel behind them.Beginner · 8 min03sudo and the sudoers fileWhy admins use sudo instead of logging in as root, how sudoers rules are written and checked with visudo, drop-ins in /etc/sudoers.d, and rules that leak root.Intermediate · 21 min04Special permission bits and umasksetuid, setgid and the sticky bit: how passwd edits a root-owned file, how shared directories keep their group, why /tmp is safe, and what umask does.Intermediate · 1 min05Access control listsPOSIX ACLs for when owner, group and other are not enough: getfacl and setfacl, the mask that quietly limits them, default ACLs, and when a group is simpler.Intermediate · 1 min06PAM and the login pathHow Linux checks a password: PAM's four module types, the stacks in /etc/pam.d, what required, requisite and sufficient do, and what runs before a shell.Advanced · 29 min01Packages, repositories and dependenciesWhat a package contains, how a repository's signed index ties every file to a checksum, how dependencies are resolved, and why curl | sh is a step back.Beginner · 6 min02apt and dpkgDebian and Ubuntu package management: dpkg underneath, apt on top, upgrade versus full-upgrade, holds and apt-cache policy, finding files, and deb822 sources.Intermediate · 11 min03dnf and rpmPackage management on Fedora, RHEL, Rocky and Alma: rpm queries, dnf on top, where repo files live now, undoing a transaction, and what became of modules.Intermediate · 27 min04Third-party repositories and signing keysHow package signatures are checked, why apt-key is gone and signed-by replaced it, adding a vendor repository safely, pinning priorities, and EPEL and PPAs.Intermediate · 11 min05Snap, Flatpak and AppImageThe bundled, sandboxed package formats: what each ships, how they update and confine apps, and why they suit desktops better than servers, with exceptions.Beginner · 3 min06Shared libraries and building from sourceHow the dynamic linker finds shared libraries, what sonames are for, ldd and ldconfig, and how to build software from source without making a mess of /usr.Intermediate · 11 min01Units, targets and dependenciesWhat a systemd unit is, the unit types you will meet, and why Wants= and Requires= decide what starts while After= decides when.Intermediate · 10 min02Writing and overriding unit filesWhere unit files live, how drop-ins change a vendor unit without editing it, and what Type=, Restart= and template units with @ really do.Intermediate · 11 min03systemd timersSchedule jobs with a .timer and a .service: OnCalendar, catching up on missed runs with Persistent=, testing expressions, and when cron is still fine.Intermediate · 12 min04journald and journalctlHow the systemd journal stores logs as structured, indexed entries, the journalctl filters that matter, and how persistence and disk limits work.Intermediate · 20 min05Syslog and log rotationHow rsyslog sorts messages by facility and priority into files and to other hosts, and how logrotate keeps those files from filling the disk.Intermediate · 24 min06Sandboxing services with systemdLimit what a compromised service can touch with DynamicUser=, ProtectSystem=, PrivateTmp= and NoNewPrivileges=, then score it with systemd-analyze security.Advanced · 34 min01Processes through /procRead a running process straight from the kernel: status, open files, memory maps and environment under /proc/<pid>, the D and Z states, and lsof.Intermediate · 5 min02Scheduling, priorities and niceHow Linux shares CPUs between runnable threads, what a nice value actually buys, real-time policies with chrt, and pinning work to CPUs with taskset.Intermediate · 11 min03Resource limits with ulimitPer-process resource limits: soft and hard values, why limits.conf does not reach systemd services, LimitNOFILE=, and fixing 'too many open files'.Intermediate · 6 min04Memory, page cache and swapRead free and /proc/meminfo correctly, see why Linux fills RAM with page cache on purpose, and decide how much swap, swappiness and zram you want.Intermediate · 14 min05The OOM killerWhy Linux promises more memory than it has, how the OOM killer picks a victim, reading its kernel log report, and steering it with oom_score_adj and cgroups.Advanced · 1 min06cgroups v2 and resource controlControl groups put processes in a tree and cap CPU, memory, I/O and process counts per branch. How v2 works and how systemd's slices drive it.Advanced · 57 min07NamespacesThe eight Linux namespaces, what each one hides, and how to create, inspect and enter them with unshare, lsns and nsenter.Advanced · 13 min01Block devices and partitionsFind disks with lsblk and blkid, read a real GPT partition table, and create aligned partitions with fdisk, sfdisk or parted without losing data.Intermediate · 17 min02Creating filesystems: ext4, XFS and BtrfsWhat mkfs writes, how ext4, XFS and Btrfs differ in ways that matter on a server, inodes and reserved blocks, and when fsck actually runs.Intermediate · 10 min03Mounting and fstabAttach filesystems to the directory tree with mount, make them permanent in /etc/fstab by UUID, pick the options that matter, and check before you reboot.Intermediate · 7 min04Logical volumes with LVMPool disks into volume groups, carve flexible logical volumes, grow a mounted filesystem without downtime, and use snapshots and thin pools safely.Intermediate · 2 min05Software RAID with mdadmRAID levels as trade-offs, building an md array with mdadm, reading /proc/mdstat, scrubbing, and replacing a failed disk without losing the array.Intermediate · 18 min06Disk encryption with LUKSHow LUKS encrypts a block device under keyslots, the cryptsetup commands, unlocking at boot with crypttab, and TPM or network unlock in brief.Advanced · 13 min07Network filesystems: NFS and SMBShare directories with NFS exports, mount NFS and SMB shares with safe options, automount on demand, and recover from stale file handles.Intermediate · 32 min01Interfaces, addresses and the ip commandRead a Linux machine's network identity with ip link and ip addr, decode names like enp5s0, and see why ifconfig was replaced.Beginner · 5 min02Routing and the default gatewayHow Linux picks an outgoing interface and next hop for every packet, how to ask it with ip route get, and what policy routing and IPv6 add.Intermediate · 20 min03Name resolution on LinuxFollow a hostname through nsswitch.conf, /etc/hosts, resolv.conf and systemd-resolved, and see why getent and dig can disagree.Intermediate · 4 min04Persistent network configurationNetworkManager, systemd-networkd and netplan: which distribution uses which, how to tell who owns an interface, and how to change it safely.Intermediate · 12 min05Sockets and listening ports with ssFind what is listening on which address with ss -tlnp, read TCP socket states, and know when TIME_WAIT and CLOSE_WAIT are a problem.Intermediate · 3 min06Packet filtering with nftablesWhere netfilter hooks sit in the packet path, how nftables tables, chains and rules fit together, and a default-deny server ruleset built on conntrack.Intermediate · 16 min07Capturing traffic with tcpdumpCapture exactly the packets you need with tcpdump filters, read a TCP handshake from its flags, and save pcap files to open later in Wireshark.Intermediate · 19 min01Hardening SSH on a serverLock sshd down to keys only, no root and named users, prove the effective config with sshd -T, and add fail2ban without locking yourself out.Intermediate · 13 min02Firewall front ends: ufw and firewalldManage a host firewall with ufw or firewalld: default policies, zones, services, runtime versus permanent, and the nftables rules underneath.Intermediate · 15 min03SELinuxHow SELinux labels confine services even as root, how to read a denial, and how to fix it with restorecon, booleans and port labels.Advanced · 16 min04AppArmorConfine programs by path with AppArmor profiles on Ubuntu and Debian: check status, read denials, switch between complain and enforce, and write a profile.Intermediate · 8 min05Linux capabilitiesHow Linux splits root into 41 separate privileges, how to grant one with setcap or AmbientCapabilities=, and how to read a process's capability sets.Advanced · 10 min06Auditing with auditdRecord who touched sensitive files and what ran, with the kernel audit system: write rules, keep them in rules.d, search with ausearch and aureport.Advanced · 11 min07Patching and automatic updatesPatch servers with unattended-upgrades or dnf-automatic, find services still running old code with needrestart, and plan kernel reboots.Intermediate · 14 min01Load average and the USE methodWhat Linux's load average really counts, including tasks stuck on disk, why it is not CPU usage, and how the USE method turns 'slow' into a checklist.Intermediate · 11 min02The first sixty seconds on a slow serverTen commands in a fixed order, from uptime to top, that check every major resource on a slow Linux server in about a minute, and what to read in each.Intermediate · 11 min03Disk and I/O bottlenecksRead iostat -x correctly, see why %util and iowait mislead on modern storage, find the process doing the I/O, and know when the I/O scheduler matters.Advanced · 18 min04Tracing system calls with straceWatch a program's conversation with the kernel using strace: filter with -e, follow children with -f, summarise with -c, and respect its overhead.Advanced · 16 min05Profiling with perf and flame graphsFind where CPU time goes with Linux perf: sample with perf top and perf record, fix missing symbols and stacks, and read a flame graph.Advanced · 20 min06eBPF and bpftraceWhat eBPF is, why its verifier makes in-kernel tracing safe for production, and how to use bcc tools like execsnoop and bpftrace one-liners.Advanced · 17 min07Recovering a system that will not bootWork out where boot stops, then fix it: edit the kernel line in GRUB, use rescue targets and rd.break, and repair from rescue media with chroot and fsck.Advanced · 1 min

What Linux is

5 lessons

  1. 01 / 05What Linux is: the kernel and the distributionWhy "Linux" names three different things: a kernel, the userland built around it, and the distribution that packages both into a system you can install.7 min
  2. 02 / 05Distributions and release modelsDebian, Ubuntu, the RHEL family, Arch and Alpine compared by how they release and how long they are supported, and how to pick one for a server.21 min
  3. 03 / 05Getting a Linux machine to practice onA local VM, WSL2, a cloud instance or a container shell: what each one gives you, what it hides, and why snapshots make breaking things cheap.10 min
  4. 04 / 05The filesystem hierarchyWhy Linux puts files where it does: /usr for the OS, /etc for config, /var for state, /run for runtime, the merged /usr, and why /tmp is now often RAM.4 min
  5. 05 / 05Kernel space, user space and system callsThe privilege boundary every Linux program crosses, how system calls work under the C library, why some skip the kernel via the vDSO, and whose bug it is.6 min

Boot and the kernel

6 lessons

  1. 01 / 06From firmware to bootloader: UEFI and GRUBWhat happens between power-on and the kernel: BIOS versus UEFI, the EFI system partition, Secure Boot with shim, regenerating GRUB's config, and systemd-boot.16 min
  2. 02 / 06The kernel command line and initramfsHow the bootloader passes parameters to the kernel, how to read and change them, and how the initramfs finds and mounts the real root filesystem.17 min
  3. 03 / 06systemd as PID 1 and boot targetsWhat the first process does, how systemd targets replaced runlevels, how to choose the default target, reach rescue or emergency mode, and find slow boots.9 min
  4. 04 / 06Kernel modules and driversHow Linux loads drivers as modules on demand: lsmod, modinfo and modprobe, module options, why blacklisting is weaker than it sounds, and DKMS.15 min
  5. 05 / 06udev and device filesWhat a device file is, what major and minor numbers mean, how udev reacts to hardware events, and why you should mount disks by UUID, not /dev/sdb.10 min
  6. 06 / 06/proc, /sys and tuning with sysctlThe kernel's /proc and /sys as a live interface, how sysctl reads and writes /proc/sys, how sysctl.d makes changes stick, and a few knobs worth knowing.5 min

Users and access control

6 lessons

  1. 01 / 06Users, groups and the account filesHow Linux identifies users and groups by number, what /etc/passwd, /etc/shadow and /etc/group hold, system versus human accounts, and NSS lookups.1 min
  2. 02 / 06Managing accounts and passwordsCreating, changing, locking and removing accounts with useradd, usermod, passwd and chage, and the defaults in /etc/login.defs and /etc/skel behind them.8 min
  3. 03 / 06sudo and the sudoers fileWhy admins use sudo instead of logging in as root, how sudoers rules are written and checked with visudo, drop-ins in /etc/sudoers.d, and rules that leak root.21 min
  4. 04 / 06Special permission bits and umasksetuid, setgid and the sticky bit: how passwd edits a root-owned file, how shared directories keep their group, why /tmp is safe, and what umask does.1 min
  5. 05 / 06Access control listsPOSIX ACLs for when owner, group and other are not enough: getfacl and setfacl, the mask that quietly limits them, default ACLs, and when a group is simpler.1 min
  6. 06 / 06PAM and the login pathHow Linux checks a password: PAM's four module types, the stacks in /etc/pam.d, what required, requisite and sufficient do, and what runs before a shell.29 min

Software and packages

6 lessons

  1. 01 / 06Packages, repositories and dependenciesWhat a package contains, how a repository's signed index ties every file to a checksum, how dependencies are resolved, and why curl | sh is a step back.6 min
  2. 02 / 06apt and dpkgDebian and Ubuntu package management: dpkg underneath, apt on top, upgrade versus full-upgrade, holds and apt-cache policy, finding files, and deb822 sources.11 min
  3. 03 / 06dnf and rpmPackage management on Fedora, RHEL, Rocky and Alma: rpm queries, dnf on top, where repo files live now, undoing a transaction, and what became of modules.27 min
  4. 04 / 06Third-party repositories and signing keysHow package signatures are checked, why apt-key is gone and signed-by replaced it, adding a vendor repository safely, pinning priorities, and EPEL and PPAs.11 min
  5. 05 / 06Snap, Flatpak and AppImageThe bundled, sandboxed package formats: what each ships, how they update and confine apps, and why they suit desktops better than servers, with exceptions.3 min
  6. 06 / 06Shared libraries and building from sourceHow the dynamic linker finds shared libraries, what sonames are for, ldd and ldconfig, and how to build software from source without making a mess of /usr.11 min

Services and logs

6 lessons

  1. 01 / 06Units, targets and dependenciesWhat a systemd unit is, the unit types you will meet, and why Wants= and Requires= decide what starts while After= decides when.10 min
  2. 02 / 06Writing and overriding unit filesWhere unit files live, how drop-ins change a vendor unit without editing it, and what Type=, Restart= and template units with @ really do.11 min
  3. 03 / 06systemd timersSchedule jobs with a .timer and a .service: OnCalendar, catching up on missed runs with Persistent=, testing expressions, and when cron is still fine.12 min
  4. 04 / 06journald and journalctlHow the systemd journal stores logs as structured, indexed entries, the journalctl filters that matter, and how persistence and disk limits work.20 min
  5. 05 / 06Syslog and log rotationHow rsyslog sorts messages by facility and priority into files and to other hosts, and how logrotate keeps those files from filling the disk.24 min
  6. 06 / 06Sandboxing services with systemdLimit what a compromised service can touch with DynamicUser=, ProtectSystem=, PrivateTmp= and NoNewPrivileges=, then score it with systemd-analyze security.34 min

Processes, memory and resources

7 lessons

  1. 01 / 07Processes through /procRead a running process straight from the kernel: status, open files, memory maps and environment under /proc/<pid>, the D and Z states, and lsof.5 min
  2. 02 / 07Scheduling, priorities and niceHow Linux shares CPUs between runnable threads, what a nice value actually buys, real-time policies with chrt, and pinning work to CPUs with taskset.11 min
  3. 03 / 07Resource limits with ulimitPer-process resource limits: soft and hard values, why limits.conf does not reach systemd services, LimitNOFILE=, and fixing 'too many open files'.6 min
  4. 04 / 07Memory, page cache and swapRead free and /proc/meminfo correctly, see why Linux fills RAM with page cache on purpose, and decide how much swap, swappiness and zram you want.14 min
  5. 05 / 07The OOM killerWhy Linux promises more memory than it has, how the OOM killer picks a victim, reading its kernel log report, and steering it with oom_score_adj and cgroups.1 min
  6. 06 / 07cgroups v2 and resource controlControl groups put processes in a tree and cap CPU, memory, I/O and process counts per branch. How v2 works and how systemd's slices drive it.57 min
  7. 07 / 07NamespacesThe eight Linux namespaces, what each one hides, and how to create, inspect and enter them with unshare, lsns and nsenter.13 min

Disks, filesystems and storage

7 lessons

  1. 01 / 07Block devices and partitionsFind disks with lsblk and blkid, read a real GPT partition table, and create aligned partitions with fdisk, sfdisk or parted without losing data.17 min
  2. 02 / 07Creating filesystems: ext4, XFS and BtrfsWhat mkfs writes, how ext4, XFS and Btrfs differ in ways that matter on a server, inodes and reserved blocks, and when fsck actually runs.10 min
  3. 03 / 07Mounting and fstabAttach filesystems to the directory tree with mount, make them permanent in /etc/fstab by UUID, pick the options that matter, and check before you reboot.7 min
  4. 04 / 07Logical volumes with LVMPool disks into volume groups, carve flexible logical volumes, grow a mounted filesystem without downtime, and use snapshots and thin pools safely.2 min
  5. 05 / 07Software RAID with mdadmRAID levels as trade-offs, building an md array with mdadm, reading /proc/mdstat, scrubbing, and replacing a failed disk without losing the array.18 min
  6. 06 / 07Disk encryption with LUKSHow LUKS encrypts a block device under keyslots, the cryptsetup commands, unlocking at boot with crypttab, and TPM or network unlock in brief.13 min
  7. 07 / 07Network filesystems: NFS and SMBShare directories with NFS exports, mount NFS and SMB shares with safe options, automount on demand, and recover from stale file handles.32 min

Networking

7 lessons

  1. 01 / 07Interfaces, addresses and the ip commandRead a Linux machine's network identity with ip link and ip addr, decode names like enp5s0, and see why ifconfig was replaced.5 min
  2. 02 / 07Routing and the default gatewayHow Linux picks an outgoing interface and next hop for every packet, how to ask it with ip route get, and what policy routing and IPv6 add.20 min
  3. 03 / 07Name resolution on LinuxFollow a hostname through nsswitch.conf, /etc/hosts, resolv.conf and systemd-resolved, and see why getent and dig can disagree.4 min
  4. 04 / 07Persistent network configurationNetworkManager, systemd-networkd and netplan: which distribution uses which, how to tell who owns an interface, and how to change it safely.12 min
  5. 05 / 07Sockets and listening ports with ssFind what is listening on which address with ss -tlnp, read TCP socket states, and know when TIME_WAIT and CLOSE_WAIT are a problem.3 min
  6. 06 / 07Packet filtering with nftablesWhere netfilter hooks sit in the packet path, how nftables tables, chains and rules fit together, and a default-deny server ruleset built on conntrack.16 min
  7. 07 / 07Capturing traffic with tcpdumpCapture exactly the packets you need with tcpdump filters, read a TCP handshake from its flags, and save pcap files to open later in Wireshark.19 min

Security and hardening

7 lessons

  1. 01 / 07Hardening SSH on a serverLock sshd down to keys only, no root and named users, prove the effective config with sshd -T, and add fail2ban without locking yourself out.13 min
  2. 02 / 07Firewall front ends: ufw and firewalldManage a host firewall with ufw or firewalld: default policies, zones, services, runtime versus permanent, and the nftables rules underneath.15 min
  3. 03 / 07SELinuxHow SELinux labels confine services even as root, how to read a denial, and how to fix it with restorecon, booleans and port labels.16 min
  4. 04 / 07AppArmorConfine programs by path with AppArmor profiles on Ubuntu and Debian: check status, read denials, switch between complain and enforce, and write a profile.8 min
  5. 05 / 07Linux capabilitiesHow Linux splits root into 41 separate privileges, how to grant one with setcap or AmbientCapabilities=, and how to read a process's capability sets.10 min
  6. 06 / 07Auditing with auditdRecord who touched sensitive files and what ran, with the kernel audit system: write rules, keep them in rules.d, search with ausearch and aureport.11 min
  7. 07 / 07Patching and automatic updatesPatch servers with unattended-upgrades or dnf-automatic, find services still running old code with needrestart, and plan kernel reboots.14 min

Performance and troubleshooting

7 lessons

  1. 01 / 07Load average and the USE methodWhat Linux's load average really counts, including tasks stuck on disk, why it is not CPU usage, and how the USE method turns 'slow' into a checklist.11 min
  2. 02 / 07The first sixty seconds on a slow serverTen commands in a fixed order, from uptime to top, that check every major resource on a slow Linux server in about a minute, and what to read in each.11 min
  3. 03 / 07Disk and I/O bottlenecksRead iostat -x correctly, see why %util and iowait mislead on modern storage, find the process doing the I/O, and know when the I/O scheduler matters.18 min
  4. 04 / 07Tracing system calls with straceWatch a program's conversation with the kernel using strace: filter with -e, follow children with -f, summarise with -c, and respect its overhead.16 min
  5. 05 / 07Profiling with perf and flame graphsFind where CPU time goes with Linux perf: sample with perf top and perf record, fix missing symbols and stacks, and read a flame graph.20 min
  6. 06 / 07eBPF and bpftraceWhat eBPF is, why its verifier makes in-kernel tracing safe for production, and how to use bcc tools like execsnoop and bpftrace one-liners.17 min
  7. 07 / 07Recovering a system that will not bootWork out where boot stops, then fix it: edit the kernel line in GRUB, use rescue targets and rd.break, and repair from rescue media with chroot and fsck.1 min
Esc
↑↓ navigate↵ open? shortcuts

Keyboard shortcuts

Press Esc to close

Anywhere

⌘K
Search and commands
/
Search
?
This sheet
Esc
Close

Reading a lesson

J
Next lesson
K
Previous lesson
B
Bookmark