Reply to comment
Terminal logging
Submitted by DenRaf on Tue, 07/24/2007 - 20: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:
exit

Read log file:
cat




Recent comments
50 weeks 3 hours ago
50 weeks 4 days ago
1 year 14 weeks ago
1 year 16 weeks ago
1 year 17 weeks ago
1 year 20 weeks ago
1 year 25 weeks ago
1 year 26 weeks ago
1 year 29 weeks ago
1 year 30 weeks ago