Which command would you use to do this?

You wish to troubleshoot some issues that you are having on the system. You want to monitor the
/var/adm/messages file in real time. Which command would you use to do this?

You wish to troubleshoot some issues that you are having on the system. You want to monitor the
/var/adm/messages file in real time. Which command would you use to do this?

A.
head

B.
tail

C.
cat

D.
file

E.
test

Explanation:
tail is a program on Unix and Unix-like systems used to display the last few lines of
a text file or piped data.
By default, tail will print the last 10 lines of its input to the standard output. With command line
options the number of lines printed and the printing units (lines, blocks or bytes) may be changed.
The following example shows the last 20 lines of filename:
tail -n 20 filename



Leave a Reply 3

Your email address will not be published. Required fields are marked *


John

John

B – this would be for tail -f /var/adm/messages