All we know that the most commonly used command-line application in many Linux distributions is 'Terminal'.
The important tool for Sysadmins and many developers in the Linux system.
However, sometimes we need to have a record of all activities, which we are performing on the Terminal.
For our convenience, a python-based tool is created that can record our terminal activities for a specified session.
TermRecord is a simple open source tool written in Python, which allows saving terminal sessions to an easy-to-share, self-contained HTML file.
Once the Terminal session is recorded, we can export it into a self-created HTML file. So, you can share recorded activities with your collaborators.
The best thing about the TermRecord, it can be installed on almost all types of Linux distributions including macOS.
The open-source of TermRecord released under the MIT license and this application makes secure the auditing of the source code. If you need then, using this application you can easily share your terminal session.
In this context we shall look into how to install TermRecord on CentOS 8 Linux system.
How to install TermRecord on CentOS 8 ?
In order for TermRecord to work correctly on CentOS, you must install Python on the system.
To begin, Log into the system as a root user with root privileges.
1. Now, install python on our system by using the following command:
# dnf install python3
Now, you have Pip3 tools on your system through which you can install TermRecord on CentOS 8.
To check the installation of pip-tools, type the below-mentioned command:
# pip3 --version
2. With pip, you can install TermRecord on your system by running the following command as root on the terminal:
# pip3 install TermRecord
How to use TermRecord on CentOS System ?
1. To start to record the terminal commands or tasks, type the following command:
$ TermRecord -o test.html
In the 'test.html' file, all terminal activities will record in the form of a video.
2. You can navigate this file in your system’s home directory.
3. Once you have finished the recording, type the 'exit' command on the terminal and hit the 'Enter' key.
Now, open the Html file which will automatically detects the terminal window size.
Moreover, it has interactive buttons for play recording such as play, pause, and the ability to slow down and speed up the playback.