Mah*_*hdi 2

您可以使用screendump

如手册页中所示:

 screendump - dump the contents of a virtual console to stdout
Run Code Online (Sandbox Code Playgroud)

您需要 root 权限才能运行 screendump,因此请使用 sudo。


Ser*_*nyy 1

就终端模拟器而言(GUI),您可以用鼠标选择文本并切换到文本编辑器(无论是gedit还是其他任何东西),然后按Ctrl+ Button 2鼠标滚轮和触摸板上右键+左键单击)

使用 TTY 您可以cat /dev/vcs1转储TTY1 的内容

然而,最好的方法应该使用终端多路复用器,例如、screen或使用命令将整个会话记录到文件中。tmuxbyobuscript