首页 > 系统服务 > 详细

Linux屏幕记录命令script

时间:2016-09-16 12:56:37      阅读:316      评论:0      收藏:0      [点我收藏+]

Script -a action.log –t 2> time.log
按ctrl+d 退出录制
回访 scriptreplay time.log action.log或者直接用查看命令cat,tail查看

作用
1 对登陆系统人员执行命令进行记录
$ vi ~/.profile

# run the script command to record everything
# use -q for quite and -a option to append the script
#
/usr/bin/script -qa /usr/local/script/log_record_script
选项-q是安静模式。用户登录时完全不会察觉到script命令的运行。而选项-a是追加,不会覆盖以往的记录。

 

Linux屏幕记录命令script

原文:http://www.cnblogs.com/zhouhbing/p/5876193.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!