How to save the output of screen windows to a file on Linux?
In the screen, copying the history of the window output is quite hard. How to save the screen easily to a file?
First type Ctrl + A then : to get to command mode.
In the command mode, execute
hardcopy -h /path/to/file
screen will save the window output to /path/to/file.