Learn how to do terminal recording with script and scriptreplay command.It is one of the useful command to record the activities on terminal. Morever after recording the terminal session you can play the session activity with the help of scriptreplay command.

 root@tuxworld:~# script -t 2>sample.time sample.log
Script started, file is sample.log
root@tuxworld:~#  

The script will start and record the commands and activities running on terminal.
Here sample.time keeps the information of time.
and sample.log is the log file for recording terminal session.

Use exit command to stop the terminal recording.

 root@tuxworld:~# exit
exit
Script done, file is sample.log
root@tuxworld:~# 

To run the recorded terminal use the below command.

root@tuxworld:~# scriptreplay sample.time sample.log

Read Some More Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.