script(1) — USER COMMANDS
NAME
script − make typescript of a terminal session
SYNOPSIS
script [ −a ] [ filename ]
DESCRIPTION
script makes a typescript of everything printed on your terminal. The typescript is written to filename, or appended to filename if the −a option is given. If no file name is given, the typescript is saved in the file typescript.
The script ends when the forked shell exits or when ctrl-D is typed.
NOTES
script places everything that appears on the screen in the log file, including prompts.
— User Environment Utilities