![Forrest logo](/images/logo.png)
asciinema:tldr:1b197
asciinema: Make a new recording and save it to a local file.
$ asciinema rec ${filename}.cast
try on your machine
The command "asciinema rec ${filename}.cast" is used to start recording a terminal session and save it as an asciicast file. Here's how to break it down:
- "asciinema" is the name of the command-line tool used to record and replay terminal sessions.
- "rec" is a subcommand of asciinema, used to initiate the recording.
- "${filename}.cast" is the name of the file where the recording will be saved. "${filename}" is a placeholder that should be replaced with the desired name for the recording. ".cast" is the file extension used by asciinema to distinguish its recording files.
By executing this command, the terminal session will be recorded and saved in an asciicast file with the given filename.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.