Here is a simple tip to record and playback a terminal session.It is done by command script and scriptreplay.
You will find it very useful in making good tutorials.
$ script -t 2> timing.log -a output.session
now type your commands;
script command here takes two files as arguments ‘timing.log(stores timing information at which each commands are run)’ and ‘output.session(stores the output of the commands)’
$ scriptreplay timing.log output.session
timing.log and output.session can be shared with anyone who wants to replay a terminal session in their terminal.