Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Script,scriptreplay: recording and playback of terminal sessions

Shulou Source: shulou.com Published: 2022-06-01 03:45:53 10月06日 Update

You can make command-line teaching video tutorials by recording terminal sessions, or you can share conversations with others.

Start recording until you exit by typing exit

# script-T2 > timing.log-an output.log

# exit

Parameter explanation:

-t: used to import time series data into stderr

2 >: used to redirect stderr to the log file timing.log

-a: stores the information output of the command

Play the video:

# scriptreplay timing.log output.log

Tags: Commands terminals information parameters available through video teaching tutorials data files logs timing video production storage interpretation input output Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Technology Linux vpn Redmi