Cron
Build and understand standard five-field Unix cron schedules.
Enter a cron expression to validate it, read its meaning, and preview upcoming runs in your local time zone.
- Processing
- Local browser only
Syntax guide
A standard Unix cron expression has five space-separated fields.
*Any value1,5List of values1-5Range*/15Step interval┌─ Minute (0–59)
│ ┌─ Hour (0–23)
│ │ ┌─ Day of month (1–31)
│ │ │ ┌─ Month (1–12)
│ │ │ │ ┌─ Day of week (0–7; 0 or 7 = Sunday)
* * * * *Example with command
In a crontab entry, append the command after the five-field expression.
0 9 * * 1 /usr/local/bin/backup.sh >> /var/log/backup.log 2>&1Runs backup.sh every Monday at 09:00 and appends standard output and errors to the log file.
FieldValueAllowed values
Minute
0–59Hour
0–23Day of month
1–31Month
1–12Day of week
0–7 · 0 or 7 = SundayCommand validation