Arko Elsenaar
Arko Elsenaar

Reputation: 1729

CentOS cronjobs location

I can't seem to find clear instructions on how crontab works on CentOS. When I (as root) edit my crontab using: crontab -e I see a list of cronjobs. However, when I edit /etc/crontab, nothing is listed there.

What is the difference?

Upvotes: 4

Views: 10405

Answers (1)

Eran Shaira
Eran Shaira

Reputation: 129

All cron files for all users are located at /var/spool/cron. Each user has its own file. Although, editing those files manually will work - its recommended that you will use 'crontab -e' to edit those.

Upvotes: 12

Related Questions