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.