LAB-MON-01 - Real-time Monitoring (top/htop)
MON Monitoring & Logging Vault
Real-time Monitoring (top/htop)
Use top and htop to inspect CPU and memory usage, sort active processes, and stop a disposable practice load.
20 min BEGINNER LINUX Curriculum-reviewed
Prerequisites
Success criteria
- Use top and htop to inspect CPU and memory usage, sort active processes, and stop a disposable practice load.
- Repeat the workflow without copy-paste or step-by-step prompting.
Safety notes
- Only terminate disposable practice processes that you created for the lab. Do not kill unknown system processes.
Part A: The Field Guide
What This Lab Is Really About
This lab teaches you how to look at a live system without guessing.
You will practice:
- opening a live process monitor
- reading CPU and memory columns
- re-sorting the view
- stopping a disposable high-CPU process you created yourself
That last part matters because the goal is controlled practice, not random process killing.
Command Reference
top htop
Useful habits:
- in
top, pressShift + Mto sort by memory - in
htop, use function keys or column selection to sort the list - quit with
q
Part B: The Drill Deck
Terminal required: use a normal Linux terminal and create only disposable load.
G Guided Step by step - type exactly this and compare the result >
Exercise G1: Read top
- Launch
top. - Find the
load averagenumbers. - Look at the
PID,%CPU, and%MEMcolumns. - Press
Shift + Mto sort by memory usage. - Press
qto quit.
Exercise G2: Try htop if Available
- If
htopis already installed, run it. - Sort by CPU and then by memory.
- Notice the difference between the summary bars and the process list.
- Quit with
q.
Exercise G3: Understand What You Are Looking At
- Compare the top few rows in
toporhtop. - Ask:
- which process is using the most CPU right now?
- which is using the most memory?
- are those the same process or different ones?
S Solo Task described, hints available - figure it out >
Exercise S1: Create a Disposable CPU Load
- Open a second terminal.
- Run this safe disposable loop:
yes > /dev/null- Switch back to the first terminal and open
toporhtop. - Confirm that the
yesprocess rises toward the top of the CPU list.
Exercise S2: Stop the Practice Load
- Identify the PID or highlight the process in
htop. - Stop it using either the monitor interface or a separate terminal with
kill. - Confirm that CPU usage drops afterward.
M Mission Real scenario - no hints, combine multiple skills >
Mission M1: Explain the Evidence
Create one short written explanation for yourself:
- which process used the most CPU during the lab
- how you verified that it was the practice process
- what changed in the monitor after you stopped it
If you can answer those three points clearly, you are learning monitoring rather than just memorizing keystrokes.