Linux Script Command

Few days before, I got to know about the script command in Linux Terminal. It is a recorder inside the terminal. It can record everything you do in terminal for future reference. This recording can be used as a documentation about what happen in terminal. Moreover, if you’re working with Linux Administrator or some of your colleagues at the same time then this can be pretty helpful to record everything you all do.

Script is a command in Linux Terminal which creates typescript that printed in terminal and this typescript can be saved and printed out later. It is very easy to use the script command. What you have to do is, just type script in $prompt, the script will be started and all your work will be saved in typescript file in your current directory.

You may also give the name of file. For example:

$ script mylogs.txt

Script started, file is typescript

$

Now, whatever you’ll do in terminal that will be saved in file mylogs.txt. To stop this simply type exit or you can press Ctrl+D. For more detail type man script or script -h.

 

Advertisements

Published by

kaurdavinder

I am the one who discover myself daily through reading, writing, interacting with people and expressing my thoughts to inspire them if I would be able to bring a little change to the society through my work. I write blogs, participate in various social activities and want to be a Professional Speaker. Currently, I am pursuing my post graduation in Computer Applications from Guru Nanak Dev Engineering College, Ludhiana and I’m very much active in many technical & social communities.

One thought on “Linux Script Command”

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