Mission 321

Journal line numbering

Number a narrowed service journal so evidence is easy to reference.

Text and logs
8 minutes Admin Lesson 321 of 360
journalctlnl
Lesson 321 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.

Read recent nginx entries

Run journalctl -u nginx -n 4.

journalctl -u nginx -n 4
Number the narrowed journal

Run journalctl -u nginx -n 4 | nl.

journalctl -u nginx -n 4 | nl
Compare service state

Run systemctl status nginx.

systemctl status nginx
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with narrowing and numbering service journal output.

Hint

Start with journalctl -u nginx -n 4, inspect the result, then continue in order.

Why it matters

Narrowing and numbering service journal output helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves narrowing and numbering service journal output.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

nl [file]

Number lines from a file or supported text pipeline.

journalctl -u <service>

Read simulated service journal entries.