Subject: What's file /etc/crontab then? What's difference between /etc/crontab and /var/spool/cron/crontabs ?
Author: Linux
In response to: Where is my crontab file actually stored?
Posted on: 09/07/2012 05:43:32 PM
There are both crontab files with different format. They are both loaded when system is on but run in different environments:
/var/spool/cron/crontabs/ --> user defined and run in user's environment
/etc/crontab --> system's environment
Here is the default content of /etc/crontab
$ sudo cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
36 * * * * root run-parts /etc/cron.hourly
50 1 * * * root run-parts /etc/cron.daily
0 4 * * 0 root run-parts /etc/cron.weekly
30 3 14 * * root run-parts /etc/cron.monthly
>
> On 09/07/2012 05:28:54 PM
Linux wrote:
Check here:
/var/spool/cron/crontabs/
References: