Record Shell Session in Linux

Posted by cikul | Posted in Linux | Posted on 03-12-2013-05-2008


Sometimes we need to log all activity we do in linux terminal. That is no problem if your terminal client had the feature, but if your terminal client don’t have feature to log your session, you can use “script” command record everything you do in a terminal session.

it’s very simple to use script, you only type this command from your shell

script -a filename

Now everything you type, as well as everything that returns as output, will be saved into the filename you chose to output to.

To stop script session, type “exit”, and script daemon will stop to recording your session

[root@server ]# exit
Script done

Incoming search terms:

acer z4 kaskus | 

Share and Enjoy

Write a comment