Reputation: 63
I am logged in as root on my CentOs.
If I do crontab -e, I have an empty file.
crontab -e
If I do cat /etc/crontab, I have a file with commands in it.
cat /etc/crontab
How is it possible?
Any idea?
Thanks in advance.
Upvotes: 5
Views: 4343
Reputation: 1578
As answered there, /etc/crontab is for the system crontab, while the crontab command is for the user crontabs which are stored in the files /var/spool/cron/<username>.
/etc/crontab
crontab
/var/spool/cron/<username>
Upvotes: 1