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:

  1. Install it using
apt install asciinema
  1. Record session by issuing
asciinema rec
  1. When done press Ctrl+D, it will prompt you to save the file
  2. To play the recorded file use
asciinema play filename
  1. plenty of usage options i am yet to explore