Skip to content
Private: files never leave your device

Cron Expression Cheat Sheet

A cron expression is five fields that tell a scheduler when to run a job: minute, hour, day of the month, month and day of the week. This cheat sheet gives the allowed values for each field, what every symbol means, a table of common schedules you can copy, and the traps that make a job run at the wrong time or not at all.

A cron expression has five fields, minute, hour, day of month, month and day of week, followed by the command. Every 5 minutes is */5 * * * *, weekdays at 9:00 is 0 9 * * 1-5 and midnight every day is 0 0 * * *

A cron expression has five fields separated by spaces, in this order: minute (0 to 59), hour (0 to 23), day of the month (1 to 31), month (1 to 12) and day of the week (0 to 6, with 0 as Sunday). For example, */5 * * * * runs every five minutes and 0 9 * * 1-5 runs at 9:00 on weekdays. The rules below were checked on 27 November 2026 against the POSIX crontab specification, the Linux crontab(5) manual from the cronie project and the GitHub Actions documentation.

The five fields

PositionFieldPOSIX valuesLinux cron (cronie) also acceptsGitHub Actions
1Minute0 to 59Same0 to 59
2Hour0 to 23Same0 to 23
3Day of the month1 to 31Same1 to 31
4Month1 to 12Names jan to dec, any case1 to 12 or JAN to DEC
5Day of the week0 to 6, 0 = Sunday0 to 7 (0 and 7 are both Sunday) and names sun to sat0 to 6 or SUN to SAT

In a user crontab the command follows the five fields on the same line. In the system file /etc/crontab and in files under /etc/cron.d/, crontab(5) adds a user name between the time fields and the command.

Symbols and what they mean

SymbolMeaningExampleSupported by
*Every value of the field* * * * * runs every minutePOSIX, cronie, GitHub
,A list of values0,30 * * * * runs at minute 0 and 30POSIX, cronie, GitHub
-An inclusive range0 8-11 * * * runs at 8, 9, 10 and 11 o'clockPOSIX, cronie, GitHub
/A step through a range or through *0 */2 * * * runs every other hourcronie, GitHub; not in POSIX
~A random value in a range, picked when the file is read6~15 * * * * picks one minute from 6 to 15cronie only
@daily and other nicknamesReplace all five fields@daily is 0 0 * * *cronie only; GitHub says it does not support them

POSIX itself only defines the asterisk, single numbers, ranges and comma lists, so a strictly POSIX cron would reject */5. Linux distributions using cronie, and GitHub Actions, accept steps.

Common schedules to copy

ScheduleCron expressionWhen it runs
Every minute* * * * *At the start of every minute
Every 5 minutes*/5 * * * *Minutes 0, 5, 10 and so on to 55 of every hour
Every 5 minutes, offset by 11-59/5 * * * *Minutes 1, 6, 11 and so on to 56
Every 15 minutes*/15 * * * *Minutes 0, 15, 30 and 45
Every hour0 * * * *On the hour; same as @hourly in cronie
Every 2 hours0 */2 * * *At 0:00, 2:00, 4:00 and so on to 22:00
Every day at midnight0 0 * * *00:00; same as @daily
Every day at 2:3030 2 * * *02:30 local time of the cron daemon
Weekdays at 9:000 9 * * 1-5Monday to Friday at 09:00
Every 5 minutes in office hours*/5 9-17 * * 1-509:00 to 17:55, Monday to Friday
Every Sunday at midnight0 0 * * 0Same as @weekly
First day of every month0 0 1 * *00:00 on the 1st; same as @monthly
Once a year0 0 1 1 *00:00 on 1 January; same as @yearly and @annually
After every reboot@rebootOnce after the system starts; cronie only

Traps that cause the wrong run time

TrapWhat actually happensSource
Steps restart every period*/35 in the minute field runs at minute 0 and 35 of each hour, not every 35 minutes; */23 in the hour field runs at hours 0 and 23crontab(5)
Day of month and day of week both setThe job runs when either matches. 30 4 1,15 * 5 runs at 4:30 on the 1st and 15th and also every FridayPOSIX and crontab(5)
Percent sign in the commandAn unescaped % becomes a new line and the rest is sent as standard input; write \%, for example in date +\%FPOSIX and crontab(5)
Daylight saving timeTimes in the skipped hour never match, so those jobs do not run, and times in the repeated hour run twicecrontab(5)
Comment after a commandComments are only allowed on their own line; on a command line the text becomes part of the commandcrontab(5)
No newline at the end of the filecronie treats the crontab as at least partly broken and logs a warningcrontab(5)
GitHub Actions time zoneSchedules run in UTC unless a timezone is set, and the shortest interval is once every 5 minutesGitHub Docs

To check a cronie crontab file before installing it, crontab(5) points to the -T option of the crontab command. To work out a Unix time while debugging a log, use the Unix Timestamp Converter, and see Unix timestamps explained for how seconds since 1970 work. For the file modes of the scripts your jobs call, see the chmod permissions chart.

Time zones

Linux cron follows the local clock of the machine it runs on, which is why the crontab(5) manual warns about daylight saving changes. cronie also reads a CRON_TZ variable in the crontab, and its manual says times in that table are then entered in the given zone, while the log keeps using the daemon's local zone. GitHub Actions uses UTC by default and accepts an IANA time zone name such as America/New_York in a timezone key; its documentation adds that in a spring-forward transition a run in the skipped hour moves to the next valid time, so a 2:30 schedule runs at 3:00.

Sources and dates

PageReadUsed for
The Open Group: POSIX.1-2024 crontab27 November 2026Field ranges, asterisk, lists and ranges, the day matching rule and the percent sign
man7.org: crontab(5), cronie project27 November 2026Names, 0 and 7 as Sunday, steps, random ranges, nicknames, CRON_TZ, daylight saving, comments, final newline, -T
GitHub Docs: Events that trigger workflows, schedule27 November 2026Five-field syntax, UTC default, timezone key, 5 minute minimum, no nicknames

Frequently asked questions

What is the cron expression for every 5 minutes?

Use */5 * * * *. It runs at minutes 0, 5, 10 and so on to 55 of every hour. On a strictly POSIX cron without step support, list the minutes instead: 0,5,10,15,20,25,30,35,40,45,50,55 * * * *.

What do the 5 fields in a cron expression mean?

In order they are minute (0 to 59), hour (0 to 23), day of the month (1 to 31), month (1 to 12) and day of the week (0 to 6, with 0 as Sunday). Linux cron also accepts 7 as Sunday and three-letter names.

Why does my cron job run on extra days?

If you set both the day of the month and the day of the week, cron runs the job when either one matches. 0 9 1 * 1 runs on the 1st of every month and also every Monday.

Does */35 run a job every 35 minutes?

No. Steps restart every hour, so */35 in the minute field runs at minute 0 and minute 35. For an exact 35 minute interval you need a check inside the script, as the crontab(5) manual shows.

What time zone does cron use?

Linux cron follows the local clock of the machine, so daylight saving changes affect it. cronie can use a CRON_TZ setting in the crontab, and GitHub Actions uses UTC unless a timezone is set on the schedule.