Learning the Terminal in Jaguar, Part 1
Subject:   What about "crontab -e"?
Date:   2002-12-10 16:44:52
From:   chris_stone
Response to: What about "crontab -e"?

You are correct in using crontab -e to edit *your* user crontab (those in /var/cron/tabs). However, the crontab command is not for the *system* crontab, (/etc/crontab), which is edited directly.


Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • What about "crontab -e"?
    2002-12-14 23:46:21  dillera [View]



    $ sudo crontab -e

    this will edit the system crontab in one step.

    • Chris Stone photo What about "crontab -e"?
      2002-12-20 10:32:21  Chris Stone | O'Reilly AuthorO'Reilly Blogger [View]

      Actually, that is not correct.

      sudo crontab -e will edit the *root* crontab -- the user crontab for the user *root*, which is /private/var/cron/tabs/root.

      This is a different file than the *system* crontab, which is /etc/crontab. It is this system crontab which holds the schedule for the regular maintenance jobs, not the root crontab.