Record shell input/output in file

$ script [file]

Run `script` command and a new shell starts up and records the input/output in the specified file until the shell is terminated.

To exit, `exit`.

If file is omitted, input/output are recorded in the file named 'typescript' in the current directory.

By default the log file is overwritten. If you want to append it, add the -a option.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.