Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Maybe I'm mistaken, but it seems that every-time I commented out a crontab entry,
it will deleted automatically.


ssh server
crontab -e

commented out an entry using "#", save and quit

Next day

crontab -e

// notice the previously commented entry is disappear

User is root, using vi as editor, running on CentOS 5.7,
and the version of crontab (from man crontab) is Cron V4.1

share|improve this question
Other ones you did not commented out are still there? – Felix Yan Dec 19 '11 at 7:10
Yes, that's the part I dun understand – ajreal Dec 19 '11 at 7:24

Try marking your comments with # rather than using the //, if I'm reading what you're doing correctly.

share|improve this answer
sorry, I'm using # – ajreal Dec 19 '11 at 7:42
Ah, my bad, I read it wrong then. Are you logging in as root via ssh? Are you sure you're looking at the same user's crontab each time? – nedm Dec 19 '11 at 7:48
Yup, login as root.And only root has existing crontab. – ajreal Dec 19 '11 at 8:05

Your Answer


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.