记录每天操作记录 发表于 2017-05-10 更新于 2026-03-03 分类于 技术分享 备份操作记录的脚本 1234cd /rootday=`date +%Y-%m-%d`tar -cvf /home/superman003/logbak/log-$day.tar .bash_historyecho"" > .bash_history