rec is a command-line utility that records terminal sessions and turns them into reusable workflows.
It captures commands run in supported shells together with contextual information such as working directory, exit code, and timing, then lets you replay sessions with guardrails or export them into portable artifacts such as shell scripts, CI/CD pipelines, Dockerfiles, and Markdown documentation.
This is free and open source software.
Key Features
- Supports Bash, Zsh, and Fish through native shell hook integration.
- Stores sessions in crash-safe NDJSON format with automatic recovery support.
- Provides session management tools including search, diff, rename, tagging, aliases, and statistics.
- Offers smart parameterization to replace environment-specific values with reusable variables during export.
- Includes an optional terminal user interface for browsing, replaying, exporting, and deleting sessions.
- Can import existing shell history and scripts into new recorded sessions.
- Cross-platform support – runs under Linux, macOS, and Windows.
Website: github.com/zeybek/rec
Support:
Developer: Ahmet Zeybek
License: MIT License

rec is written in Rust. Learn Rust 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 |
| ttystudio | Excellent terminal-to-gif recorder |
| ffscreencast | Shell wrapper for ffmpeg that allows fool-proof screen recording |
| tty2gif | Record scripts into both binary and gif formats |
| TermRecord | Terminal session recorder with easy-to-share self-contained HTML output |
| IPBT | High-tec terminal player |
| rec | Records terminal sessions and turns them into reusable workflows |
| ttyrec | Terminal recorder, incudes a playback tool |
| termrec | Set of tools for recording and replaying tty sessions |
| screencast | Interface to record a X11 desktop |
| rewindtty | Terminal session recorder and replayer |
| Showterm | Terminal record and upload utility |
| termtosvg | Render SVG animations of shell sessions |
| script | The granddaddy of terminal recorders |
| Shelr | Broadcast plain text screencasts |
Read our verdict in the software roundup.
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. |


Please read our Comment Policy before commenting.