Forks the current shell and makes a typescript of a terminal session. The typescript is written to
file. If no
file is given, the typescript is saved in the file
typescript. The script ends when the forked shell exits, usually with Control-D or exit.
Append to file or typescript instead of overwriting the previous contents.