21 July, 2011

logging the linux shell session

To start logging the linux bash shell session to a file, type in the bash shell console the command script

dino@dino-laptop:~$ script
Script started, file is typescript

This will start logging what all comes in the bash shell to the file typescript in the path from where u typed the command script. To stop the logging, just type exit in the bash shell or type control + D

dino@dino-laptop:~$ exit
Script done, file is typescript

No comments:

Post a Comment