I ran a program that has a good amount of command line output, and it ran on a screen in a ssh server. I referred to this post so that I can scroll through the screen and see the output, but there is too much output and going up line by line is not ideal.
Scroll inside Screen, or Pause Output
I was wondering if there is any way I could just save the screen output or copy all of it at once and paste it to a file.
>
. For example:./runmyprogram.x > whatever.log
will save all output to a file called whatever.log. – ron Aug 19 '19 at 20:50command 2>&1 | tee output.txt
- this will output everything to stdout and also save it to theoutput.txt
file to review later. – Michal Przybylowicz Aug 19 '19 at 21:00