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 |
| ttyd | Shares your terminal over the web |
| asciinema | Record and share terminal sessions |
| ttystudio | Excellent terminal-to-gif recorder |
| agg | asciinema gif generator |
| 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 |
| ttyrec | Terminal recorder, incudes a playback tool |
| termtosvg | Render SVG animations of shell sessions |
| 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 |
| Shelr | Broadcast plain text screencasts |
| script | The granddaddy of terminal recorders |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

