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 -n 5 /var/log/webserver.log
tail -F /var/log/webserver.log
tail -f -n 5 /var/log/webserver.log
tail -n 5 /var/log/webserver.log