crontab文件只在两处,一个是/etc/crontab中,其相关联的是 /etc/cron.daily monthly等文件夹

 

另一个各用户分别的crontab文件在   /var/spool/cron

 

ll /var/spool/cron/
atjobs/   atspool/  crontabs/
root@ubuntu-hp-machine:/home/zhych# ll /var/spool/cron/crontabs/www-data
-rw------- 1 www-data crontab 566 4月  14 23:51 /var/spool/cron/crontabs/www-data
root@ubuntu-hp-machine:/home/zhych# cat /var/spool/cron/crontabs/www-data
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (- installed on Wed Apr 14 23:51:36 2021)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
*/1 * * * * /var/www/edusoho/app/console util:scheduler -v -e prod 2>&1 | xargs /var/www/edusoho/app/../bin/crontab-log /var/www/edusoho/app/logs/crontab.log #EduSoho scheduler Job 60770f88232fc
*/1 * * * * /var/www/edusoho/app/console util:scheduler -v -e prod 2>&1 | xargs /var/www/edusoho/app/../bin/crontab-log /var/www/edusoho/app/logs/crontab.log #EduSoho scheduler Job 60770f882330f


 

 

 

图片格式在线转换工具    http://thetisstudio.com/