Terminal Session Recording

script – record terminal sessions

script is the long-established terminal session recorder supplied as part of util-linux. It creates a typescript containing terminal activity from an interactive shell or another command, providing a straightforward way to preserve what appeared during a session.

The utility is considerably more capable than simply redirecting standard output. Programs running under script believe they are connected to a terminal, which is useful when capturing interactive software whose behaviour changes when output is redirected to a normal file. Timing information can also be stored separately so the session can subsequently be reproduced with scriptreplay.

Modern script can log multiple data streams, including terminal input and output. Input logging requires particular care because characters entered while terminal echo is disabled, including passwords, can still be written to the recording.

This is free and open source software.

Key Features

  • Records raw terminal session data to a typescript file.
  • Stores timing information separately for later playback with scriptreplay.
  • Log terminal input and output either separately or together.
  • Supports a structured multi-stream timing format which identifies input, output, headers and signals.
  • Append a new terminal session to an existing recording.
  • Run a specified command instead of starting the user’s normal interactive shell.
  • Control terminal echo behaviour for the pseudo-terminal used by the recorded session.
  • Optionally return the exit status of the recorded child process.
  • Flush recording output after every write, useful when another process needs to follow a session as it happens.
  • Can also flush log files on demand in response to a signal.
  • Set an output-size limit for the typescript and timing files.
  • Quiet mode suppresses script’s own session start and completion messages.
  • Works with scriptreplay for timed playback and scriptlive for replaying recorded input into an interactive session.
  • Uses the user’s configured shell by default but permits another shell to be selected.

Website: www.kernel.org/pub/linux/utils/util-linux/
Support:
Developer: not known
License: BSD 3-Clause ‘New’ or ‘Revised’ License

script is written in C. Learn C with our recommended free books and free tutorials.


Related Software

Console Screencasting Tools / Terminal Session Recording
TerminalizerGenerates animated GIF images of your terminal
VHSWwrite terminal GIFs as code for integration testing and demoing
ttydShares your terminal over the web
asciinemaRecord and share terminal sessions
t-recGenerates animated GIF images for the web
aggasciinema gif generator
ttystudioExcellent terminal-to-gif recorder
ffscreencastShell wrapper for ffmpeg that allows fool-proof screen recording
tty2gifRecord scripts into both binary and gif formats
TermRecordTerminal session recorder with easy-to-share self-contained HTML output
IPBTHigh-tec terminal player
recRecords terminal sessions and turns them into reusable workflows
ttyrecTerminal recorder, incudes a playback tool
termrecSet of tools for recording and replaying tty sessions
screencastInterface to record a X11 desktop
rewindttyTerminal session recorder and replayer
ShowtermTerminal record and upload utility
termtosvgRender SVG animations of shell sessions
scriptThe granddaddy of terminal recorders
ShelrBroadcast plain text screencasts

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted