We have moved to www.dataGenX.net, Keep Learning with us.

Thursday, December 29, 2011

Record your nix session : SCRIPT




"script" command is use to record your nix 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   

No comments :

Post a Comment