5 ms·
GNU tail lets you say "--follow=descriptor" to follow the content of the file no matter how it gets renamed, or "--follow=name" to re-open the same filename whe
by thristian 11y ago
GNU tail lets you say "--follow=descriptor" to follow the content of the file no matter how it gets renamed, or "--follow=name" to re-open the same filename when a different file gets renamed onto it.
- daurnimator 11y agoThat's the difference between 'tail -f' and 'tail -F' and is implemented in every tail I know of.
- mh- 11y agoindeed. `tail -qF` has been muscle memory for me for as long as I can remember. if you have long lived sessions tail'ing logs that get rotated (or truncated), forgetting -F is a good way to eventually end up confused, ctrl-c'ing, and finally cursing.