GIAC
GSNA · Question #367
You work as the Network Technician for XYZ CORP. The company has a Linux-based network. You are working on the Red Hat operating system. You want to view only the last 4 lines of a file named…
Sign in or unlock GSNA to reveal the answer and full explanation for question #367. The question stem and answer options stay visible for context.
Linux/Unix System Auditing
Question
You work as the Network Technician for XYZ CORP. The company has a Linux-based network. You are working on the Red Hat operating system. You want to view only the last 4 lines of a file named /var/log/cron. Which of the following commands should you use to accomplish the task?
Options
- Atail -n 4 /var/log/cron
- Btail /var/log/cron
- Ccat /var/log/cron
- Dhead /var/log/cron
Unlock GSNA to see the answer
You've previewed enough free GSNA questions. Unlock GSNA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#tail command#log viewing#Linux file utilities#log analysis