Record all commands input & output using script

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

script

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s