Free CompTIA Linux+ XK0-005 Practice Question

Which command will efficiently allow a monitoring script to display the last five entries of a log file and continue to output any new entries as they are appended, while also ensuring that file rotations are handled correctly by tracking the file descriptor?

  • tail -F /var/log/webserver.log

  • tail -f -n 5 /var/log/webserver.log

  • tail -F -n 5 /var/log/webserver.log

  • tail -n 5 /var/log/webserver.log

This question's topic:
CompTIA Linux+ XK0-005 / 
Scripting, Containers, and Automation
Your Score:

Check or uncheck an objective to set which questions you will receive.

SAVE $45