Mission 98

Log retention review

Review log size and line counts before cleanup decisions.

Security administration
7 minutes Admin Lesson 98 of 360
dufindwc
Lesson 98 of 360 0/360 lessons 0/17 missions Security administration · 7 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 7 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Size logs

Run du -sh /var/log.

du -sh /var/log
Find logs

Run find /var/log -name log.

find /var/log -name log
Count auth log

Run wc -l /var/log/auth.log.

wc -l /var/log/auth.log
Lesson support

What to notice while you play.

Objective

Measure logs before deciding anything.

Hint

Use du, find, and wc.

Why it matters

Retention decisions should be evidence-aware.

Common mistakes
  • Deleting logs without preserving evidence.
  • Measuring only total disk.
Reference

Commands in this lesson.

wc [-l] <file>

Count lines, words, and characters.

find [path] [-name text]

Search lab filesystem paths.