Mission 10

Grep practice

Search literal text in logs and practice case-insensitive matching.

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

Use grep to isolate relevant log lines.

Hint

Start with grep denied, then try grep -i nginx.

Why it matters

Fast text search is one of the most valuable terminal habits.

Common mistakes
  • Searching the wrong file.
  • Forgetting -i when case might vary.
Reference

Commands in this lesson.

cat <file>

Print text file contents.

grep [-i] <text> <file>

Find literal text inside a file.