Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize screen recording and playback through Linux command

Shulou Source: shulou.com Published: 2022-06-01 21:40:52 10月01日 Update

This article will explain in detail how to achieve screen recording and playback through the Linux command. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.

I believe most people have not heard of Linux system through the command line can also achieve screen recording and playback, so how to achieve it? The following tutorial network will share with you how to achieve screen recording and playback through the Linux command.

We need script,scriptreplay already installed in the system.

For example, we can do it in the following ways. Simply run a few commands, and then play back to see if you can output step by step.

$script-T2 > time.log-a record.session

Script started, file is record.session

$echo test begin

Test begin

$echo test start

Test start

$echo test end

Test end

$exit

Exit

Script done, file is record.session

The recording of this screen is over, and we play it back and forth through scriptreplay.

$scriptreplay time.log record.session

After entering this command, you will see that the screen seems to have been manipulated, run the command step by step, and then output it, which feels very fulfilling.

If you need to see this process on another machine, you can copy the files generated by time.log and record.session and run the command directly.

The contents of the timestamp file are as follows. All recorded a little bit of operation time information.

$cat time.log

0.350314 17

0.052705 1

1.176860 1

0.241008 1

0.064975 1

On how to achieve screen recording and playback through the Linux command to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Command screen content run file article time more knowledge article system process output yes two information can pass feeling achievement sense of achievement Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Huawei MariaDB MySQL Shulou Technology