I really enjoy using a command-line interface instead of a graphical user interface, and was wondering if anyone had any solid recommendations for applications that one can use in a terminal window.
Tail -f works by opening the file and remembering the byte offset, if it’s a log file that gets flushed/wiped then tail -f won’t see anything until the logs fill enough to exceed the previous file contents.
Unless you pass the option --follow=name in which case tail will if necessary reopen the file and follow it even when log-application has closed and moved it elsewhere and opened a new one of the same name.
Comments (385) 158 threads
Show all comments
Showing thread 33 of 158
Works on BSD `tail` too. :)
A Python version of the Linux watch command:
https://jugad2.blogspot.com/2018/05/a-python-version-of-linu...