命令
systemctl start crond
crontab -l
crontab -e
cron表达式 + 执行的命令
0 */1 * * *
0 8 * * 1-5
0 0 1,15 * *
* * * * *
1 * * * *
30 6 */10 * *
0 0 1 1 *
* * * * * /bin/date >>/tmp/date.txt
* * * * * sleep 10; /bin/date >>/tmp/date.txt
* * * * * sleep 20; /bin/date >>/tmp/date.txt
* * * * * sleep 30; /bin/date >>/tmp/date.txt
* * * * * sleep 40; /bin/date >>/tmp/date.txt
* * * * * sleep 50; /bin/date >>/tmp/date.txt
一些清理命令
find /tmp -name "*.jpg" -type f -delete
find /logs/ -type f -mmin +30 -name '*' -exec rm -rf {} \
echo `date +"%Y-%m-%d %H:%M:%S"` >> /logs/clear.out
find相关命令链接