Record Session Using script Command in Linux
script command can be used to record the everything that typed on the terminal.
Syntax
Script filename
*All the record recorded to the filename , if no filename specified record is recorded to the file called typescript.
Example
*Now what ever you type will be store in file record.txt
How to stop recording
Press ctrl+d or type exitHow to view Recorded File
1. You can cat that file$ cat record.txt
2.You can open the file with any text editor
$ vi record.txt
I want to record next session in the same file
Enter the following command in terminal to record session in record.text
$ script -a record.txt
If You Liked This Post Please Take a Time To Share This Post
Very good blog post on Linux. Seems simple and easy to understand. This is so useful for the Linux learners. Thank you for such clear explanation.
ReplyDeleteRegards,
Linux Training Institutes in Hyderabad
Linux Training Institutes in India
Linux Online Training hyderabad
Linux Online Training India
Best Institutes for Linux
Linux Administration Training in Hyderabad
Its a wonderful post and very helpful, thanks for all this information.
ReplyDeleteLinux Training institute in Noida