I have a script that runs for a long time. It has plenty of output to stdout that I would like to be able to read over in real time but also scroll up and down. Whenever a new line of output is printed to stdout, my screen resets to the bottom of the output (most current content). Is there any way to page through stdout while also having the newest content visible and up-to-date when I scroll down?
I'm on RHEL7. I don't have a GUI and am connected to the host via SSH.
command | less
Mouse may or may not work in less, make sure to use page up & down if not.