Terminal Session Recording

rec – records terminal sessions

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 in action
Click animation for full size

rec is written in Rust. Learn Rust with our recommended free books and free tutorials.


Related Software

Console Screencasting Tools / Terminal Session Recording
TerminalizerGenerates animated GIF images of your terminal
ttydShares your terminal over the web
asciinemaRecord and share terminal sessions
ttystudioExcellent terminal-to-gif recorder
aggasciinema gif generator
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
ttyrecTerminal recorder, incudes a playback tool
termtosvgRender SVG animations of shell sessions
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
ShelrBroadcast plain text screencasts
scriptThe granddaddy of terminal recorders

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments