I have struggled when student asked me to provided them all the commands I ran in terminal (mostly MySQL queries).
I recently came across a very nice tool to record terminal sessions in ubuntu. The name of the tool is asciinema:
- Install it using
apt install asciinema
- Record session by issuing
asciinema rec
- When done press Ctrl+D, it will prompt you to save the file
- To play the recorded file use
asciinema play filename
- plenty of usage options i am yet to explore