Which of the following commands should you use to view the last few lines of your /var/xinetd.log file?
  1. cat /var/xinetd.log |more
  2. head /var/xinetd.log
  3. less /var/xinetd.log
  4. tail /var/xinetd.log
Explanation
Answer - D - You should use the tail /var/xinetd.log command to view the last few lines of your /var/xinetd.log file.

Key Takeaway: The tail utility displays the last few lines of the file. Some of the options that can be used with this command are -l to display l units of lines, -b to display b units of blocks, and -c to display units of bytes. This command is a standard way of watching log files in Unix.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz