Log disk review
Estimate simulated log size and list log files.
Understand the pattern
Deleting logs blindly can erase useful diagnostic data.
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.
find- Search directory trees by criteria rather than relying on one shallow listing.
Quote wildcard patterns so find receives them instead of the shell expanding them first.
tail- Show the end of an input; -n selects the number of lines.
This browser lab snapshots output; it does not keep a live tail -f stream.
Worked example and expected result
$ du -sh /var/log3K /var/log
Exit status: 0. The command completed successfully in the training fixture.
$ find /var/log -name log/var/log /var/log/auth.log /var/log/cron.log /var/log/dpkg.log /var/log/journal/backup.log /var/log/journal/nginx.log /var/log/journal/ssh.log /var/log/kern.log /var/log/nginx-access.log /var/log/nginx-access.log.1 /var/log/nginx-error.log /var/log/nginx-error.log.1 /var/log/syslog
Exit status: 0. The command completed successfully in the training fixture.
$ tail -n 2 /var/log/nginx-access.log127.0.0.1 GET /api/test 404 127.0.0.1 POST / 405
Exit status: 0. The command completed successfully in the training fixture.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Deploy script reviewTry an incident drillAnonymous 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.