Mission 302

Option reading drill

Use help output before applying search options to a log.

Terminal basics
8 minutes Beginner Lesson 302 of 360
mangrephistory
Lesson 302 of 360 0/360 lessons 0/17 missions Terminal basics · 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 grep options

Run man grep.

man grep
Apply a literal search

Run grep denied /var/log/auth.log.

grep denied /var/log/auth.log
Review the sequence

Run history.

history
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with checking command options before using them.

Hint

Start with man grep, inspect the result, then continue in order.

Why it matters

Checking command options before using them helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves checking command options before using them.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

man <command>

Read a short educational manual page.

grep [-i] <text> <file>

Find literal text inside a file.

history

Show recent commands.