https://wp.jochen.hayek.name/blog-en/2015/01/08/the-script-command/
the "script" command is a Unix utility that records a terminal session