Linux command
asciinema 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Record
asciinema rec [recording.cast]
Play
asciinema play [recording.cast]
Upload
asciinema upload [recording.cast]
Example
asciinema rec -t "[My recording]" [recording.cast]
Example
asciinema rec --idle-time-limit=[2] [recording.cast]
说明
asciinema records and replays terminal sessions. It captures terminal output with timing information, creating lightweight recordings that can be shared or embedded on websites. Unlike video screen recording, asciinema recordings are text-based, allowing copy-paste from playback and producing small file sizes.
参数
- rec _file_
- Record terminal session
- play _file_
- Playback recorded session
- upload _file_
- Upload recording to asciinema.org
- auth
- Authenticate with asciinema.org
- -t _title_, --title _title_
- Recording title
- -c _cmd_, --command _cmd_
- Command to record (default: $SHELL)
- --idle-time-limit _sec_
- Maximum idle time between frames
- -i _sec_
- Shorthand for --idle-time-limit
- -s _speed_, --speed _speed_
- Playback speed multiplier
- --cols _n_ / --rows _n_
- Override terminal dimensions
FAQ
What is the asciinema command used for?
asciinema records and replays terminal sessions. It captures terminal output with timing information, creating lightweight recordings that can be shared or embedded on websites. Unlike video screen recording, asciinema recordings are text-based, allowing copy-paste from playback and producing small file sizes.
How do I run a basic asciinema example?
Run `asciinema rec [recording.cast]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does rec _file_ do in asciinema?
Record terminal session