Adding tail behaviour where enter adds blank lines to less

Posted by gonvaled on Server Fault See other posts from Server Fault or by gonvaled
Published on 2013-04-26T10:00:59Z Indexed on 2013/10/25 3:58 UTC
Read the original article Hit count: 476

Filed under:
|
|

I love less, which I can use to follow logs with the +F flag (or the ShiftF hotkey), search forwards and backwards, and generally move freely through the document.

But there is one thing missing in less: usually I am at the end of the file, and I want to see new things happening. In tail -f I would just hit enter several times, and new log lines would just appear clearly separated from old lines.

Is it possible to add this to less? How?

© Server Fault or respective owner

Related posts about linux

Related posts about tail