You can record your session in Linux using "script" command.
This records the login session in a file.It is useful to store in a file all keystrokes as well as other output and error messages.
$script
script started, file is typescript
$
.
.
.
Finally , you can terminate the session by entering "exit"
$exit
script done, file is typescript
$
Now, you can view this file using cat command
$cat typescript
Always, when you start your session using script,it actually overwrites the previous session information.So, if you want to append to the existing file
$script -a
thank you for reading !!!
cheers !
sGk
This records the login session in a file.It is useful to store in a file all keystrokes as well as other output and error messages.
$script
script started, file is typescript
$
.
.
.
Finally , you can terminate the session by entering "exit"
$exit
script done, file is typescript
$
Now, you can view this file using cat command
$cat typescript
Always, when you start your session using script,it actually overwrites the previous session information.So, if you want to append to the existing file
$script -a
thank you for reading !!!
cheers !
sGk
No comments:
Post a Comment