linux script 命令
生活随笔
收集整理的这篇文章主要介绍了
linux script 命令
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
录制脚本
$ script -t 2>time.file -a output.file
#开始录制了
$ ls -al
1.c 2.c 3.c
#执行一个命令
$exit
#结束录制
回放脚本
$ scriptreplay time.file output.file
#脚本将会自动回放
$ script -t 2>time.file -a output.file
#开始录制了
$ ls -al
1.c 2.c 3.c
#执行一个命令
$exit
#结束录制
回放脚本
$ scriptreplay time.file output.file
#脚本将会自动回放
总结
以上是生活随笔为你收集整理的linux script 命令的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: SQL Server游标的使用
- 下一篇: linux pwn练习0x01