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