script

script
シェルでの行動を記録する

$ script
Script started, output file is typescript
... 何かを行う ...
Ctrl-D
$ col -bx <typescript | less

代用:

 $ bash -i 2>&1 | tee typescript


リファレンス:
Debian リファレンス --- 8.2.1 シェルでの行動を記録する
http://www.debian.org/doc/manuals/reference/ch-tips.ja.html

manual of col
http://www.jp.freebsd.org/cgi/mroff.cgi?subdir=man&lc=1&cmd=&man=col&dir=jpman-5.2.0%2Fman§=0