Pages

Monday, July 16, 2012

Recording a Shell Session


There are some times where we need to record a shell session including all the commands we used and other things. We can use the script command for this

Script sam.12 (when you execute the command, a screen refresh will happen) and the next line will show that the script was started

Script started, file is sam.12 (after this you can execute whatever command you need) .

exit( once done , enter the exit command to come back)

You can see the session by, cat sam.12