Sam Stelfox

Thoughts from a software engineer, systems hacker and Linux gubernāre.

Session Recording

Bash Builtins

The script utility which I've found in Fedora as a default package (or it's a bash builtin). You can record a session and the timing data about it exit and then view it like an in console video.

Record a session with it's timing data...

[[email protected] ~]$ script -t 2> example.timing -a example.session
Script started, file is example.session
[[email protected] ~]$ # DO STUFF
[[email protected] ~]$ exit
Script done, file is example.session

And replay it later:

[[email protected] ~]$ scriptreplay example.timing example.session