Run less /var/log/auth.log.
less /var/log/auth.log
Click any instruction for the command details, the why, and the common mistake to avoid.
Run less /var/log/auth.log.
less /var/log/auth.log
Run head -n 2 /var/log/auth.log.
head -n 2 /var/log/auth.log
Run tail -n 2 /var/log/auth.log.
tail -n 2 /var/log/auth.log
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.
Practice safe log reading without editing files.
Use less first, then head and tail.
Operators often need a quick view without opening an editor.
less <file>
Page through a file.
head|tail [-n N] <file>
Read the beginning or end of a file.