nerdexam
Oracle

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…

Analyzing and Troubleshooting System Problems

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)
  • A
    3% (1)
  • B
    85% (28)
  • C
    9% (3)
  • E
    3% (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

#tail command#real-time log monitoring#system messages#/var/adm/messages

Community Discussion

No community discussion yet for this question.

Full 1Z0-821 Practice