How Do You Record a Command in Linux Terminal?
Contents

How do you record a command in terminal?

To start recording of Linux terminal, type script and add the log filename as shown. To stop script, type exit and press [Enter]. If the script can not write to the named log file then it shows an error.

Which command is used to record session in Unix?

What is script Command. Script is a UNIX command-line application that records a terminal session (in other words, it records everything that is displayed on your terminal). It stores the output as text file in the current directory and the default filename is typescript .

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest