Cron jobs can be set to run by the minute, hour, day of the week, day of the month, month, or any combination of these.
Each entry in a crontab file consists of six fields following this order:
minute(s) hour(s) day(s) month(s) weekday(s) command(s)
These fields are separated by spaces or tabs, with the first five characters as integers and the sixth as the command to execute.
| Field | Value | Description |
|---|---|---|
| minute | 0-59 | Exact minute that the command sequence executes |
| hour | 0-23 | Hour of the day that the command sequence executes |
| day | 1-31 | Day of the month that the command sequence executes |
| month | 1-12 | Month of the year that the command sequence executes |
| weekday | 0-6 | Day of the week that the command sequence executes |
| command | special | Complete sequence of commands to execute |