Do you know that you can record your terminal session with ttyrec?
On Ubuntu/Mint this software can simply being installed by issuing
sudo apt-get install ttyrec -y
The syntax is basically
And your session will be recorded until you issue "exit" command
To replay the session simply use