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?

asked Oct 18, 2016 by anonymous

1 Answer

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.

answered Nov 13, 2016 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost