我见过多次使用 script 命令的 bash 脚本。我使用了 man 脚本并向我展示了script - make typescript of terminal session
script - make typescript of terminal session
之后我用谷歌搜索但我没有看到任何有用的东西。我有两个问题。这些是:
1-script命令有什么用?
script
2- 为什么命令script -qc "exit 1"返回退出代码 0?
script -qc "exit 1"
command-line bash scripts
bash ×1
command-line ×1
scripts ×1