Search This Blog

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
dino@dino-laptop:~$

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
exit
Script done, file is typescript
dino@dino-laptop:~$


No comments:

Post a Comment

tmux enabling mouse interaction

Add the below line to the ~/.tmux.conf setw -g mouse on save the file and exit from the tmux shell, you should be able to use your mouse to ...