Founding prices until 15 December: 30% off Pro, locked for life. See pricing

Cron expression explainer

Paste a schedule or a whole crontab line. You get it in words, the next runs, and the classic traps.

At 02:30 on Monday to Friday.

Runs /usr/local/bin/backup.sh

  1. 30Minute
  2. 2Hour
  3. *Day of month
  4. *Month
  5. 1-5Day of week

Next runs

If the server runs in UTC, as most do.

  1. 2026-12-02 02:30 Wed
  2. 2026-12-03 02:30 Thu
  3. 2026-12-04 02:30 Fri
  4. 2026-12-07 02:30 Mon
  5. 2026-12-08 02:30 Tue
  6. 2026-12-09 02:30 Wed

Questions

What is the order of the cron fields?
Minute (0-59), hour (0-23), day of month (1-31), month (1-12) and day of week (0-7, where 0 and 7 are Sunday), then the command.
How do I run a cron job every 5 minutes?
*/5 * * * * followed by the command. The */5 in the minute field means every fifth minute: 0, 5, 10 and so on.
Why does my cron job not run?
Usually the PATH (cron's is very short), a % in the command that isn't escaped, relative paths, or a file in /etc/cron.d with the wrong owner, mode or name. Check the cron log (journalctl -u cron).
What time zone does cron use?
The machine's local time zone, unless the crontab sets CRON_TZ (cronie) or the service is configured otherwise. Servers usually run in UTC.

Practise it on a real machine

Broken systems in your browser. The grader checks the result.