3 ms·
How many times have you seen the last line of a file you're tailing be something like "00:00 Logfile turned over." Both less and tail stop doing their business
by rhizome 5y ago
How many times have you seen the last line of a file you're tailing be something like "00:00 Logfile turned over." Both less and tail stop doing their business when a log is rotated and the inode changes. Stop that by adding or extending an alias:
alias less='less --follow-name' # still requires <shift>-f to follow
alias tail='tail -F'