LPI Exam Questions

Which of the following commands should you use to read the file in real time?

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?

A.
tail -n 3 /var/adm/messages

B.
tail /var/adm/messages

C.
cat /var/adm/messages

D.
tail -f /var/adm/messages