Crontab

Editing Crontab

Editing Crontab:

crontab -e

You may need to set your default editor through the EDITOR shell variable. You can use an inline environment variable:

EDITOR=vi crontab -e

Crontab File Format

*        *      *             *      *             <command>
minutes  hours  day of month  month  day of week

     
field         allowed values
-----         --------------
minute        0-59
hour          0-23
day of month  1-31
month         1-12
day of week   0-7 (0 or 7 is Sun, or use names)