Record your Unix session : SCRIPT

“script” command is use to record your Unix session, whatever you are typing on terminal, whether it is input or output, is recorded in a file “typesctipt”

$ script
   Script started, file is typescript
$         { Anothe shell, child shell of login shell }
$ exit  ( ctrl -d )


Script done, recorded file is typescript.

  You can also use
    script -a              ( append in the existing file )
    script logfile        ( create a logfile of your session )

tips ::
* Whenever use “script” always give the output filename like
         $ script record1  or script record2

* Otherwise, when you are using “script” command second time, it will overwrite the first one output file   

Leave a Reply

Your email address will not be published. Required fields are marked *