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 has written in Python and used to record the terminal session. 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 article, we will explain to you about the installation of TermRecord on CentOS 8 Linux system. So, let us start the installation of TermRecord on our CentOS system.
Python should be installed on your system and you must have root privileges.
Install TermRecord using pip on CentOS 8
First, you need to install python on our system by using the following command:
# dnf install python3
As you can see the python is already installed on our system. 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
Using pip, install the TermRecord on your system by running the following command as root on the terminal:
# pip3 install TermRecord
In a while, the installation of TermRecord will complete on your system.
How TermRecord Works?
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. You can navigate this file in your system’s home directory.
Once you have finished the recording, type the ‘exit’ command on the terminal and hit the ‘Enter’ key.
Now, open the Html file and you will the result like the following output:
It 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.
The TermRecord application allows you to better enjoy the recorded Terminal content. We have talked in this article, how to install the TermRecord application on CentOS 8. Furthermore, we also explored how to record the terminal session quickly without installing heavy applications.
Samreena Aslam holds a master’s degree in Software Engineering. She’s a technical writer and has written various articles on different Linux flavours including Ubuntu, Debian, CentOS and Mint.