天天看点

linux下监控用户操作记录的工具apt-get install bsdutilsmkdir /opt/operation_logchmod 777 -R /opt/operation_logvi /etc/profilesource /etc/profilescriptreplay /opt/operation_log/root-0-2018-01-30-20\:11\:29.data /opt/operation_log/root-0-2018-01-30-20\:11\:29.log

linux下监控用户操作记录的工具:

exec script -t 2&gt; /opt/operation_log/$USER-$UID-<code>date +%F-%T</code>.data -a -q -f /opt/operation_log/$USER-$UID-<code>date +%F-%T</code>.log

:wq

操作记录回放:

本文转自linux博客51CTO博客,原文链接http://blog.51cto.com/yangzhiming/2067023如需转载请自行联系原作者

yangzhimingg

继续阅读