Run cat /var/log/auth.log | grep denied | wc -l.
cat /var/log/auth.log | grep denied | wc -l
Filter logs through safe text pipelines.
Text and logscatgrepwcjournalctl
Click any instruction for the command details, the why, and the common mistake to avoid.
Run cat /var/log/auth.log | grep denied | wc -l.
cat /var/log/auth.log | grep denied | wc -l
Run journalctl -u ssh | grep denied.
journalctl -u ssh | grep denied
Run cat /home/learner/data/ports.txt | sort | uniq.
cat /home/learner/data/ports.txt | sort | uniq
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.
Count filtered lines without leaving the simulator.
Pipe auth.log into grep denied, then wc -l.
Pipelines are a daily Unix skill for triage and reporting.
cat <file>
Print text file contents.
grep [-i] <text> <file>
Find literal text inside a file.
wc [-l] <file>
Count lines, words, and characters.
journalctl -u <service>
Read simulated service journal entries.