Linux & OS Internals
CPU time and load average
Load average looks like a CPU percentage and is not one. Read the three numbers correctly and you avoid a top-three Linux interview trap.
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
- 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.
- Your first shell script: shebang, variables and quotingBeginner · 5 min
A script is a list of commands saved in a file. Three habits, the shebang, variables and quotes, decide whether it works on any file name.
- if, for and while in BashBeginner · 5 min
Make a script decide and repeat: test a file, loop over services, read a file line by line, and avoid the unquoted test that breaks on empty values.
- Exit codes and set -euo pipefailBeginner · 5 min
By default a Bash script keeps going after a command fails. Learn how three shell options affect error handling, where their limits are, and how to clean up.
- Build a disk-and-service check script and schedule itBeginner · 5 min
Combine five earlier lessons into one working job: test disk and services, exit non-zero on trouble, log with timestamps, run it every five minutes.