20 C
Texas
angeloma
Senior Writer and partner

Install TermRecord on AlmaLinux OS 8 / CentOS 8: Record your terminal session

Hello, friends. Many times we do commands in our terminal that we would like to repeat. An example could be when we install some application that we have shown you here, and we would like to share with others. Record a video? Yes, it is a great alternative but how? Well, today we will show you how to install and use TermRecord on AlmaLinux OS 8 / CentOS 8. With it, you will be able to record a terminal session and export it in HTML format where it can be played anywhere.

According to the project profile on GitHub:

TermRecord is a simple terminal session recorder with easy-to-share self-contained HTML output!

It is built with Python so you can install it on almost any Linux distribution without much trouble. Moreover, TermRecord is licensed under the MIT License so we will have no problem examining its source code.

Why would I use it?

- Advertisement -

One of the best reasons to record your terminal session is because you can remember a whole sequence of commands to install or do certain things.

Think that when we install WordPress on Ubuntu or other application, several commands are executed, recording the terminal session and sharing it can be a complement to help with that.

On the other hand, it also serves as a reminder about many things with our work. Especially if it is in the terminal.

Install TermRecord on AlmaLinux OS 8 / CentOS 8

Open a terminal and update your distribution completely:

sudo dnf update

Then, install Python:

sudo dnf install python3

And we will install using PIP so before using it we will have to update it to avoid versioning problems.

sudo pip3 install -U pip

The process will be quite fast, so there should be no problem.

And then, start the installation by executing the following command:

sudo pip3 install TermRecord

At the end of the command execution, you will get the following output:

Successfully installed TermRecord-1.2.5

Using TermRecord

The usage is really simple, open a terminal and then run it:

TermRecord -o sample.html

This will indicate that the output will be called sample.html and will be at the current location of the prompt. Of course, you can change this and define whatever name and path you want.

After this, go back to work as you normally do. When you want to stop the recording run

exit

And you will get the following output on the screen

Script done, file is /tmp/tmplti5d8ph

Now open your file and you can see the results.

1.- TermRecord on AlmaLinux OS 8 / CentOS 8
1.- TermRecord on AlmaLinux OS 8 / CentOS 8

Enjoy it

Conclusion

This interesting tool is a marvel that will help us to record our work in the terminal. It is not intrusive and consumes very few resources. Moreover, it is quite easy to install which guarantees that we will not waste any time with it

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article