Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What is the configuration file that defines the cronjobs?

I know you can crontab -e, but it points to a temporary file.

share|improve this question
    
I’ve forgotten the exact path, and I don’t have a Linux system handy to check, but try looking under /var/cron. Alternatively, do man cron and man crontab and see whether they tell you. –  Scott Jun 28 '13 at 0:57
    
I think it is /var/spool/cron/. In this directory all users crontab lists are stored. My system is CentOS6.3. The path may vary in your system. –  max Jun 28 '13 at 8:35
add comment

1 Answer

up vote 0 down vote accepted

The files are kept in

/var/spool/cron/crontabs

However, this does require root access by default.

You should never edit these files manually. This can cause all sorts of issues but it should be possible to sync them.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.