Linux & OS Internals
systemd: units, systemctl and services
The first command an on-call engineer types on a dead server is systemctl status. Learn to read it, and to tell started from enabled.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Linux & OS Internals
- Environment variables, PATH and shell startup filesBeginner · 5 min
A script works when you run it and fails from cron with command not found. The difference is the environment. Learn what it is, how PATH picks a program, and which…
- Package managers: apt, dnf and repositoriesBeginner · 5 min
Why you never download a .exe on Linux: one command fetches, verifies and installs software, and one more tells you which package owns any file.
- Logs: /var/log, journalctl and log rotationBeginner · 5 min
"Check the logs" is not a plan until you know which file or command, and how to stop logs filling the disk.
- Scheduling work with cronBeginner · 5 min
A cron job that works when you type it and fails at 3 a.m. almost always fails for one reason: cron does not run in your shell.
- Disk space: df, du, mounts and file system typesBeginner · 5 min
A full disk kills more services than any bug. Learn the two commands that disagree on purpose, and where each directory actually lives.
- Memory: RAM, swap, virtual memory and the OOM killerBeginner · 5 min
When a process vanishes with no error message of its own, the kernel often killed it on purpose. Here is how to prove it.