script -a action.log -t time.log 然后你输入的命令都会被记录下来 知道你输入exit ,终止 播放时使用 script time.log action.log 你输入的命令就会被播放出来