The five fields
A cron schedule is five fields separated by spaces, followed by the command:
┌───────── 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 are Sunday)
│ │ │ │ │
30 18 * * 1-5 /usr/bin/php /var/www/artisan schedule:run
This one runs at 18:30 on weekdays.
What the symbols mean
| Symbol | Meaning | Example | Reads as |
|---|---|---|---|
* |
every value | * * * * * |
every minute |
, |
a list | 0 9,13,17 * * * |
at 09:00, 13:00 and 17:00 |
- |
a range | 0 9 * * 1-5 |
at 09:00, Monday to Friday |
/ |
a step | */15 * * * * |
every 15 minutes |
| names | months, weekdays | 0 0 * jan,jul mon |
midnight on Mondays in January and July |
Shortcuts: @hourly, @daily (or @midnight), @weekly, @monthly, @yearly (or @annually) and @reboot, which runs once when the server starts.
Schedules people look up most
| Expression | Runs |
|---|---|
* * * * * |
every minute |
*/5 * * * * |
every 5 minutes |
0 * * * * |
every hour, on the hour |
0 */6 * * * |
every 6 hours (00:00, 06:00, 12:00, 18:00) |
0 2 * * * |
every day at 02:00 |
0 9 * * 1-5 |
weekdays at 09:00 |
0 0 * * 0 |
every Sunday at midnight |
0 0 1 * * |
the first day of every month |
0 0 1 1 * |
once a year, on 1 January |
Mistakes that catch everyone
The day-of-month and day-of-week trap. If both fields are set, cron runs when either matches, not both. 0 0 13 * 5 runs on the 13th of every month and on every Friday, not only on Friday the 13th. The explainer shows "or" when this happens, and the next-run list makes it obvious.
*/7 in the minute field is not every 7 minutes around the clock. Steps restart every hour: it runs at :00, :07, ... :56, then :00 again, a 4-minute gap.
Time zones. Cron uses the server's time zone, which is often UTC on cloud servers. 18:30 UTC is midnight in India. Check with timedatectl and set CRON_TZ where your cron supports it.
Environment. Cron runs with a minimal PATH and no shell profile. Use full paths (/usr/bin/php, not php) and send output somewhere you can read: >> /var/log/myjob.log 2>&1.
Percent signs. In a crontab line, % means a new line. Escape it as \%, for example in date +\%F.
Six fields?
Some systems add a seconds field at the start (Quartz, Spring, some Node libraries) or a year at the end. Standard Linux cron and crontab use five. If your expression has six fields, check which system will run it.
Frequently asked questions
How do I run a cron job every 5 minutes?
How do I edit my crontab?
Why is my cron job not running?
What does 0 0 * * 0 mean?
How do I run a Laravel scheduler with cron?
Sources
The rules and figures in this tool come from these official sources, last checked November 12, 2026.
- crontab(5) manual page man7.org