GIAC
GSNA · Question #36
You work as the Network Administrator for Perfect Solutions Inc. The company has a Linux- based network. You are a root user on the Red Hat operating system. You want to keep an eye on the system…
The correct answer is B. tail -f /var/adm/messages. Using the -f option causes tail to continue to display the file in real time, showing added lines to the end of the file as they occur.
Linux/Unix System Auditing
Question
You work as the Network Administrator for Perfect Solutions Inc. The company has a Linux- based network. You are a root user on the Red Hat operating system. You want to keep an eye on the system log file /var/adm/messages. Which of the following commands should you use to read the file in real time?
Options
- Atail -n 3 /var/adm/messages
- Btail -f /var/adm/messages
- Ccat /var/adm/messages
- Dtail /var/adm/messages
How the community answered
(20 responses)- A10% (2)
- B85% (17)
- C5% (1)
Explanation
Using the -f option causes tail to continue to display the file in real time, showing added lines to the end of the file as they occur.
Topics
#tail -f#real-time log monitoring#Linux commands#system logs
Community Discussion
No community discussion yet for this question.