1Z0-821 · Question #62
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?
The correct answer is B. tail. tail is a program on Unix and Unix-like systems used to display the last few lines of a text file or 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…
Question
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?
Options
- Ahead
- Btail
- Ccat
- Dfile
- Etest
How the community answered
(33 responses)- A3% (1)
- B85% (28)
- C9% (3)
- E3% (1)
Explanation
tail is a program on Unix and Unix-like systems used to display the last few lines of a text file or 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
Topics
Community Discussion
No community discussion yet for this question.