Save all terminal text with script #

Script makes a typescript of everything printed in the terminal (saved to a file named typescript in the current directory by default):
$ script
Script started, output file is typescript
$ echo 'this is being recorded!'
this is being recorded!
$ exit
exit

Script done, output file is typescript
$ head typescript
Script started on Sun Jul 17 07:25:25 2011
bash-3.2$ echo 'this is being recorded!'
this is being recorded!
bash-3.2$ exit
exit

Script done on Sun Jul 17 07:25:51 2011

/nix | Jul 17, 2011


Subscribe or visit the archives.