How to use the Script command to record terminal sessions in Linux?

The script command in Linux makes a typescript of everything on your terminal session. It stores the information in raw form to a log file. Additionally, it also gives you the option to store information about the timing of commands.…