Skip to content
Clairos Learn

Server operations · Lesson 4 of 36 · 8 minutes

Resource inspection

Read simulated disk, memory, uptime, and directory usage signals.

Mastery 0/3Run itExplain itApply it
learner@clairosSimulated Linux lab
learner@clairos:~ $
↑ history · Tab complete · Ctrl+C cancel · Esc, Tab to leaveExit 0

Understand the pattern

Capacity issues often explain service symptoms.

df
Inspect the virtual filesystem capacity report. Real systems can run out of space or inodes independently.

Available space is a snapshot, not a guarantee that a later write will succeed.

du
Estimate usage attributed to files or directories; compare it with filesystem capacity when investigating storage.

du describes file usage, whereas df describes filesystem capacity.

free
Inspect simulated memory totals and availability.

Allocated, cached, available, and free memory are not interchangeable measures.

uptime
Read simulated runtime and load information.

Load average is not a direct CPU percentage.

Worked example and expected result
$ df -h
Filesystem      Size  Used Avail Use% Mounted on
lab-root         20G  6.4G   14G  32% /
lab-logs        2.0G  180M  1.9G   9% /var/log

Exit status: 0. The command completed successfully in the training fixture.

$ du -sh /var/log
3K	/var/log

Exit status: 0. The command completed successfully in the training fixture.

$ free -h
               total        used        free      shared  buff/cache   available
Mem:           3.8Gi       820Mi       2.1Gi        18Mi       900Mi       2.8Gi
Swap:             0B          0B          0B

Exit status: 0. The command completed successfully in the training fixture.

$ uptime
 10:26:04 up 12 days,  4:18,  1 learner,  load average: 0.04, 0.03, 0.01

Exit status: 0. The command completed successfully in the training fixture.

Try a variation

Repeat this workflow in the sandbox with a different scratch filename. Keep the system fixtures unchanged and compare the observed output with your expectation before moving on.

Explain it

In “Resource inspection”, which interpretation is safe?

Apply it elsewhere

Before adapting the du workflow from “Resource inspection” to another server, what should you do?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Host network viewTry an incident drill

Anonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.

Keep learning

  1. 01Nginx validationRead training nginx config and validate it without making real server changes.Practice
  2. 02Host network viewInspect simulated hostname, addresses, and listening sockets.Practice
  3. 03Service listList simulated units and check nginx activity.Practice