mirror of https://github.com/CrimsonTome/tldr.git
36 lines
793 B
Markdown
36 lines
793 B
Markdown
|
# asciinema
|
||
|
|
||
|
> 录制和播放终端会话, 也可以把他们分享到 asciinema.org.
|
||
|
|
||
|
- 将本地安装的`asciinema`与asciinema.org账号关联:
|
||
|
|
||
|
`asciinema auth`
|
||
|
|
||
|
- 进行新的录制(完成后,将提示用户上传或在本地保存:
|
||
|
|
||
|
`asciinema rec`
|
||
|
|
||
|
- 进行新的录制,保存到本地的文件中:
|
||
|
|
||
|
`asciinema rec {{path/to/file}}.cast`
|
||
|
|
||
|
- 从本地文件中播放终端录屏:
|
||
|
|
||
|
`asciinema play {{path/to/file}}.cast`
|
||
|
|
||
|
- 在asciinema.org中播放终端录屏:
|
||
|
|
||
|
`asciinema play https://asciinema.org/a/{{cast_id}}`
|
||
|
|
||
|
- 进行新的录制, 将闲置时间设置为最多 2.5 秒:
|
||
|
|
||
|
`asciinema rec -i {{2.5}}`
|
||
|
|
||
|
- 打印本地保存的录像的完整输出:
|
||
|
|
||
|
`asciinema cat {{path/to/file}}.cast`
|
||
|
|
||
|
- 从本地上传一个录屏到asciinema.org:
|
||
|
|
||
|
`asciinema upload {{path/to/file}}.cast`
|