Run man grep.
man grep
Use help output before applying search options to a log.
Terminal basicsmangrephistory
Click any instruction for the command details, the why, and the common mistake to avoid.
Run man grep.
man grep
Run grep denied /var/log/auth.log.
grep denied /var/log/auth.log
Run history.
history
Create a free account to sync completed lessons, XP, streaks, course status, and your next lesson across sessions.
Checking account status...
Progress sync is idle.
Progress sync stores completion IDs, scores, streaks, badges, and game settings. Terminal contents, editor snippets, lab scratch, email, and real names are never published on leaderboards or share cards.
Build repeatable confidence with checking command options before using them.
Start with man grep, inspect the result, then continue in order.
Checking command options before using them helps operators explain what they know before they change anything.
man <command>
Read a short educational manual page.
grep [-i] <text> <file>
Find literal text inside a file.
history
Show recent commands.