• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Terminal Recording with script and scriptreplay command

July 16, 2012 by Sharad Chhetri

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

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. How to see system load average in terminal with graphical representation
  2. 30 useful Linux terminal keyboard shortcuts
  3. How to page scroll up/down in Linux terminal
  4. Ubuntu Linux : get matrix effect on terminal
  5. Convert hyphen to underscore in between all filenames shell script
  6. Run the script using nohup without hitting enter key two times
  7. send email after mysql backup through bash script in simple way
  8. postgres database backup script using database user password inside
  9. Xen Server License Nagios Plugin (bash script)
  10. How To Use case in Bash Script, Example

Filed Under: Linux, Tips And Tricks Tagged With: script command

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

Install libjpegtran by using yum command in CentOS 6.x

How to reset forgot root password in CentOS 6.x and Redhat 6.x

Set GRUB password after installation of CentOS/Red Hat

master admin password openerp 7.x

Do not show line haveing particular keyword by grep command

This kernel requires an x86-64 CPU but only detected an i686 CPU

postgres database backup script using database user password inside

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy