Linux for DevOps¶
Linux is the operating system under almost everything you'll run: cloud instances, Kubernetes nodes, containers, and CI runners. This track covers the administration and troubleshooting skills you'll use every week, with commands you can run on any modern distribution. Examples use Ubuntu 24.04 LTS and note where RHEL-family systems differ.
What You'll Learn¶
- How the filesystem, users, and permissions control access
- How processes, signals, and systemd services behave, and how to read their logs
- How to manage disks, filesystems, and LVM without losing data
- How to secure SSH and sudo, keep packages patched, and diagnose a slow server
Read in This Order¶
- Filesystem and Permissions — the directory layout, ownership, modes, special bits, ACLs, and
umask - Processes and Signals — process states,
psand/proc, signals, zombies, priorities, and open files - systemd and journald — units, writing a service, overrides, timers, sandboxing, and
journalctl - Storage, Disks, and LVM — block devices, filesystems,
fstab, LVM, growing cloud disks, and "disk full" incidents - Users, sudo, and SSH Hardening — accounts, groups, sudoers, key-based SSH, and a hardened
sshdconfiguration - Packages and Patching — apt and dnf, pinning, unattended security updates, and reboot handling
- Performance Troubleshooting — the USE method and a 60-second triage for CPU, memory, disk, and network
The Commands You'll Use Most¶
| Task | Command |
|---|---|
| What's using the disk? | df -h, du -xh --max-depth=1 / \| sort -h |
| What's running? | ps aux --sort=-%cpu \| head, systemctl list-units --failed |
| Why did the service fail? | systemctl status app, journalctl -u app -e |
| What's listening? | ss -tulpn |
| Who can read this file? | ls -l, stat, getfacl |
| Is the box overloaded? | uptime, vmstat 1, iostat -xz 1 |
How This Connects to the Rest of the Site¶
| Linux concept | Shows up again in |
|---|---|
| Processes, namespaces, cgroups | Docker: Linux namespaces and cgroups |
| systemd services | Podman Quadlet units, Kubernetes node services (kubelet, containerd) |
| Permissions and users | Container USER directives, Kubernetes securityContext |
| SSH and sudo | Ansible connectivity and become |
| Performance tools | Docker production troubleshooting |
Next¶
Start with Filesystem and Permissions.