Files
tldr/pages.zh/common/script.md

24 lines
403 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 脚本
> 创建一个终端会话的typescript文件。
> 更多信息:<https://manned.org/script>。
- 在名为“typescript”的文件中开始录制
`script`
- 停止录制:
`exit`
- 在指定的文件中开始录制:
`script {{logfile.log}}`
- 追加到现有文件:
`script -a {{logfile.log}}`
- 安静执行,不显示开始和完成消息:
`script -q {{logfile.log}}`