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 | |
|---|---|
| Terminalizer | Generates animated GIF images of your terminal |
| VHS | Wwrite terminal GIFs as code for integration testing and demoing |
| ttyd | Shares your terminal over the web |
| asciinema | Record and share terminal sessions |
| t-rec | Generates animated GIF images for the web |
| agg | asciinema gif generator |
| ffscreencast | Shell wrapper for ffmpeg that allows fool-proof screen recording |
| IPBT | High-tec terminal player |
| rec | Records terminal sessions and turns them into reusable workflows |
| TermSVG | Record terminal sessions and export them as animated SVG files |
| termrec | Set of tools for recording and replaying tty sessions |
| screencast | Interface to record a X11 desktop |
| script | The granddaddy of terminal recorders |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.