Cron Explainer
Paste a cron expression to see what it means in plain English and when it runs next.
[local] Runs in your browser. Nothing you enter leaves your device.
- Next runs
-
- Time zone
How it works
cron is the Linux scheduler. Each line of a crontab (crontab -e)
is a schedule followed by a command. The schedule has five fields:
┌──────── minute (0–59)
│ ┌────── hour (0–23)
│ │ ┌──── day of month (1–31)
│ │ │ ┌── month (1–12 or JAN–DEC)
│ │ │ │ ┌ day of week (0–7 or SUN–SAT, 0 and 7 = Sunday)
* * * * * command to run
-
*means every value,5one value,1-5a range. -
1,15is a list,*/15means every 15th value. -
Shortcuts:
@hourly,@daily,@weekly,@monthly,@yearly, and@reboot(once at startup).
The classic gotcha: if you set both day of month and day of week,
cron runs when either matches. 0 0 13 * FRI runs on every 13th
and every Friday, not just Friday the 13th.
Next run times are shown in your browser's time zone. Servers often run in UTC, so check with
timedatectl on the machine itself.