[oracle@centos6 ~]$ mkdir record
[oracle@centos6 ~]$ ls
20161009.html control.20161016.bak Downloads Music Public software
backup Desktop filelist.txt par.txt record Templates
bifile.bbd Documents log.bbd Pictures scripts Videos
[oracle@centos6 ~]$ cd record
[oracle@centos6 record]$ script -t 2> time.log -a record.session
Script started, file is record.session
接着就会记录之后的操作,按CTRL+D即可退出录制。
回放:
[oracle@centos6 record]$ scriptreplay time.log record.session