Have you ever thought of recoding everything printed on your terminal!!
If yes you might have come across the ‘script’ , if not I will have it explained here:
script makes a typescript of everything printed on your terminal
If you want to start recording you need to type the following command from your terminal
You should see similar to the following output if you don’t mention any file location
Script started, file is typescript
From now it will record all the command line activity.When you’re finished recording whatever it is that you want to record, type [Ctrl]-d or exit, and your script session will end.
Output when you end your session as follows
Script done, file is typescript