Copying the GNU screen scrollback buffer to a file (extended hardcopy)

前端 未结 7 484
隐瞒了意图╮
隐瞒了意图╮ 2020-12-12 08:43

How do I easily copy the GNU Screen scrollback buffer to a file? I.e., a more powerful version of the \'hardcopy\' command?

In GNU screen, I can use \"Ctrl

7条回答
  •  一生所求
    2020-12-12 09:06

    This worked for me:

    Enter edit mode (~) and type:

    :hardcopy -h buff_file
    

    It created a huge file, of which 98% was empty, but my logs were fully present in remaining 2%.

提交回复
热议问题