1
Task 1 of 5
Loading...
FILE VIEWING DRILL
Scenario
An incident responder needs to review log files and configs quickly. Use cat, head, and tail to extract the right information from each file.
0 completed0%
Solution Cheat Sheet
Task 1 — Display file contents
cat /etc/hostname
Task 2 — First 3 lines
head -n 3 /etc/passwd
Task 3 — Last 2 lines
tail -n 2 /var/log/auth.log
Task 4 — File with line numbers
cat -n ~/Documents/data.csv
Task 5 — View full syslog
cat /var/log/syslog