bionic (1) script.1.gz
Provided by: bsdutils_2.31.1-0.4ubuntu3_amd64 bug
NAME
script - make typescript of terminal session
SYNOPSIS
script [options] [file]
DESCRIPTION
script makes a typescript of everything displayed 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 the dialogue in this file. If no filename is
given, the dialogue is saved in the file typescript.
script
,从bsdutils
包是你想要的工具。并且您键入的所有命令及其所有输出(包括光标控制,取决于 的设置
$TERM
)都将保存在my.log
.从
man
页面:您可以使用它来附加到文件而不覆盖。
您还可以检查
.bash_history
命令的顺序。这个答案可能会有所帮助。