I'll often use
less to page through the output of a program that's going to keep producing output, such as with
tail -f /var/log/messages | less. Is it possible to jump to the bottom of the current buffer when doing this?
Normally when using
less with a program that's expected to terminate (
grep <term> <files> | less, for example), you can press Shift+G, and
less will wait for the program to terminate and the pipe to close, then jump to the bottom of the buffer. However doing this with a pipe that will never terminate just causes
less to hang.
Instead, I'd like
less to just go to the bottom of whatever has already come through the pipe; is that possible?