Mission 09

Viewing text

Open text, search logs, and inspect output without editing files.

Text and logs
0/25 lessons 0/7 missions
Ops lab terminal Browser only
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Lesson support

What to notice while you play.

Objective

Read file contents without changing them.

Hint

Use tail for logs and cat for small files.

Why it matters

Most troubleshooting starts by reading evidence.

Common mistakes
  • Opening huge logs with cat in a real terminal.
  • Searching before checking which file you are reading.
Reference

Commands in this lesson.

cat <file>

Print text file contents.

head|tail [-n N] <file>

Read the beginning or end of a file.

grep [-i] <text> <file>

Find literal text inside a file.

stat <path>

Show fake file details.