Run grep denied /var/log/auth.log.
grep denied /var/log/auth.log
Search literal text in logs and practice case-insensitive matching.
Text and logsgrepcat
Click any instruction for the command details, the why, and the common mistake to avoid.
Run grep denied /var/log/auth.log.
grep denied /var/log/auth.log
Run grep -i nginx /var/log/syslog.
grep -i nginx /var/log/syslog
Run grep server_name /etc/nginx/sites-available/learn.conf.
grep server_name /etc/nginx/sites-available/learn.conf
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.
Use grep to isolate relevant log lines.
Start with grep denied, then try grep -i nginx.
Fast text search is one of the most valuable terminal habits.
cat <file>
Print text file contents.
grep [-i] <text> <file>
Find literal text inside a file.