Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Can I use the C++/Java-style /* */ syntax to multi-line comments in the crontab file?

share|improve this question
up vote 16 down vote accepted

The only comment character allowed in a crontab file is #. So you need to do:

# This is line 1
# This is line 2
0 0 * * * /usr/bin/magiccronjob

Edit: I believe it's man 5 crontab to see the details about crontab syntax.

share|improve this answer

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.