当前位置: 首页 > news >正文

定时执行任务crontab用法

定时执行任务crontab用法

sudo crontab -e
编辑crontab,每小时执行一次
0 * * * * /home/atct/autodelete.sh

sudo systemctl start cron
sudo systemctl enable cron
sudo systemctl status cron


sudo systemctl stop cron