Record Terminal Sessions With asciinema
Capture a full terminal session as a tiny, text-based .cast file.
Run asciinema rec demo.cast, do your work, then type exit to stop recording.
01Command
Command
$ asciinema rec demo.cast02What it does
asciinema records terminal input, output and timing into a small JSON-based .cast file rather than a heavy video. Replay it with asciinema play demo.cast, or upload it to asciinema.org for an embeddable player. It is ideal for bug reports and tutorials.
03Risk
!Warning: Everything typed is recorded, including secrets; review the cast before sharing it.
04Undo
Undo
$ exit05Sources
- Homebrew formula: asciinemaEvidence: Installs the asciinema recorder and player.
- asciinema documentationEvidence: Official docs for recording and replaying .cast sessions.
Last verified: 2026-09-20 · Category: Developer
06Related solutions
Change where screenshots are saved on Mac
Point macOS screen captures at any folder you choose instead of the desktop.
Download a file from a URL on Mac with curl
Grab any file from the web straight into the current folder — no browser needed.
Find files larger than 500 MB on Mac
List the biggest files in your home folder that are eating disk space.