记录每天操作记录

技术分享 2017-05-10

备份操作记录的脚本

cd /root
day=`date +%Y-%m-%d`
tar -cvf /home/superman003/logbak/log-$day.tar .bash_history
echo"" > .bash_history

评论 (0)

发表评论

最多500字符

验证码

暂无评论

成为第一个评论的人吧!