Ever wanted to record a log of an interactive console session? Easy, just use
script utillity. It’s probably already present on your system, no
To start recording, run
script --timing=script.tim script.log. This spawns a
new shell, recording stops when you exit from it.
To replay the log, run
scriptreplay script.tim script.log. It is also
possible to speed up or slow down the playback speed. For example, in order to
play back the recording at half of the original speed, use
script.tim script.log 0.5.
Ctrl+S pauses the playback,
The nice thing about
script is that it records everything that happens on the
cosole, it’s not just a simple log of invoked commands. If you open a text
vi in the recorded session, you’ll be able to see exactly how and
where you navigate the cursor, exactly how and when text was changed -
including any typos that were later corrected, and so on.
Subscribe via RSS