Mission 319

Numbered log reading

Add stable line numbers to a short authentication-log view.

Text and logs
8 minutes Core Lesson 319 of 360
nlhead
Lesson 319 of 360 0/360 lessons 0/17 missions Text and logs · 8 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 8 minutes

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

Number the auth log

Run nl /var/log/auth.log.

nl /var/log/auth.log
Read the first numbered lines

Run nl /var/log/auth.log | head -n 3.

nl /var/log/auth.log | head -n 3
Count the source lines

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

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

What to notice while you play.

Objective

Build repeatable confidence with citing exact lines from log evidence.

Hint

Start with nl /var/log/auth.log, inspect the result, then continue in order.

Why it matters

Citing exact lines from log evidence helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves citing exact lines from log evidence.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

head|tail [-n N] <file>

Read the beginning or end of a file.

nl [file]

Number lines from a file or supported text pipeline.