crontab
查看crontab定时任务
crontab -l
修改crontab
crontab -e
增加一条记录 每天凌晨1点执行删除日志任务
0 1 * * * find /export/servers/logs -mtime +7 -name "all_data-*.log" -type f -print0 | xargs -0 rm -f
查看最近100条crontab日志
tail -100 /var/log/cron
crontab
查看crontab定时任务
crontab -l
修改crontab
crontab -e
增加一条记录 每天凌晨1点执行删除日志任务
0 1 * * * find /export/servers/logs -mtime +7 -name "all_data-*.log" -type f -print0 | xargs -0 rm -f
查看最近100条crontab日志
tail -100 /var/log/cron