Run du -sh /var/log.
du -sh /var/log
Compare active and rotated logs before retention decisions.
Text and logsdufindwc
Click any instruction for the command details, the why, and the common mistake to avoid.
Run du -sh /var/log.
du -sh /var/log
Run find /var/log -name log.
find /var/log -name log
Run wc -l /var/log/nginx-error.log.1.
wc -l /var/log/nginx-error.log.1
Create a free account to sync completed lessons, XP, streaks, course status, and your next lesson across sessions.
Checking account status...
Progress sync is idle.
Progress sync stores completion IDs, scores, streaks, badges, and game settings. Terminal contents, editor snippets, lab scratch, email, and real names are never published on leaderboards or share cards.
Compare active and rotated logs before retention decisions.
Run the commands in order and compare the outputs.
Junior operators build confidence by gathering evidence before changing systems.
wc [-l] <file>
Count lines, words, and characters.
find [path] [-name text]
Search lab filesystem paths.