August 1999
Intermediate to advanced
1000 pages
83h 9m
English
/usr/bin/script [-a][filename] Use the script command to copy to a file everything that is displayed on your terminal, including your input and the system prompts and output. The record is written to filename . If you specify no file name, the record is saved in the file typescript.
The script command forks and creates a subshell, using the value of $SHELL, and records the text from this session. The script ends when the forked shell exits or when you type Control-D.
| -a | Append the session record to filename instead of overwriting it. |
The following example starts script using the default typescript file and then displays the comments of the typescript file. ...
Read now
Unlock full access