Run sed 1,3p /var/log/auth.log.
sed 1,3p /var/log/auth.log
Preview a small text window before searching a large file.
Text and logssedgrep
Click any instruction for the command details, the why, and the common mistake to avoid.
Run sed 1,3p /var/log/auth.log.
sed 1,3p /var/log/auth.log
Run sed 1,3p /var/log/nginx-access.log.
sed 1,3p /var/log/nginx-access.log
Run grep POST /var/log/nginx-access.log.
grep POST /var/log/nginx-access.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.
Preview a small text window before searching a large file.
Run the commands in order and compare the outputs.
Junior operators build confidence by gathering evidence before changing systems.
grep [-i] <text> <file>
Find literal text inside a file.
sed s/old/new/ <file>
Preview simple text substitutions.