如何录制终端会话?

Pun*_*xit 2 ubuntu terminal

在腻子会话中,我们可以将会话记录在文本文件中。同样,我想将Ubuntu终端的会话记录在一个文本文件中。

是否可以?如果是,我该怎么做?

Yur*_*rko 7

检查“脚本”。

从“人脚本”:

script  makes  a  typescript  of everything printed on your terminal.
It is useful for students who need a hardcopy record of an interactive
session as proof  of  an  assignment, as the typescript file can be
printed out later with lpr(1).

If  the  argument file is given, script saves all dialogue in file.
If no file name is given, the typescript is saved in the file typescript.
Run Code Online (Sandbox Code Playgroud)