Text filters · Question 11 of 12
logrotate renames access.log at night and creates a new, empty file. Why is tail -F better than tail -f for following it?
1 answer is correct. Hard Created with AI
Show answer
Answer
- B tail -F reopens the file by its name as soon as it has been replaced
Explanation
tail -f follows the file descriptor it opened, i.e. the renamed old file, and then shows no new lines. -F is equivalent to --follow=name --retry.