Perosurac
Perosurac

Reputation: 63

Empty crontab when crontab -e

I am logged in as root on my CentOs.

If I do crontab -e, I have an empty file.

If I do cat /etc/crontab, I have a file with commands in it.

How is it possible?

Any idea?

Thanks in advance.

Upvotes: 5

Views: 4343

Answers (1)

Jean Paul
Jean Paul

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>.

Upvotes: 1

Related Questions