Terminal logging

Submitted by DenRaf on Tue, 07/24/2007 - 21:01

Sometimes you want to log everything what happens in your terminal.

If you use konsole or gnome-terminal, you can change history or scroll settings, but you don't have output to a file.

There are a few simple tools for just doing that, but always with a bit difference:

Like tee. Explained here by my colleague raskas. This is nice, but you aren't able to do manual input.

Therefore you use script. You just create a log file of your terminal sessions, even typo's :) if you log a shell script where manual input is required.

Start logging with:
script [-a] [-c COMMAND] [-f] [-q] [-t] [file]

End logging with:

Terminal log

Read log file:

Read log