Minuteform / Every hour
$ crontab -l | grep '^0 \*'
Cron every hour: 0 * * * *
To run a job once an hour, on the hour, use 0 * * * *. In a crontab that is the line 0 * * * * /path/to/job.sh. This page gives the same schedule for other schedulers, every 2 to 12 hours, and the mistakes that turn “every hour” into every minute.
0 * * * * runs at minute 00 of every hour: 24 runs a day. The 0 is the minute, the star after it is every hour. @hourly means the same in crontab and Kubernetes. To run at a different minute, change the first number: 17 * * * * runs at 00:17, 01:17 and so on. Preview the next runs or paste any expression into the cron expression translator.
| Where | Every hour | Note |
|---|---|---|
| crontab | 0 * * * * /path/to/job.sh | @hourly is the same: “Run once an hour, ie. "0 * * * *"” (crontab(5)) |
| systemd timer | OnCalendar=hourly | Expands to *-*-* *:00:00 |
| Kubernetes CronJob | schedule: "0 * * * *" | @hourly also accepted |
| GitHub Actions | - cron: '17 * * * *' | Any minute works; GitHub names the start of every hour as a high-load time when runs can be delayed |
| AWS EventBridge | cron(0 * * * ? *) | Six fields with a year; ? in day of week |
| Quartz | 0 0 * * * ? | Seconds come first |
Spring @Scheduled | 0 0 * * * * | Spring’s docs: “the top of every hour of every day” |
01Every hour, every N hours, and work hours only
The plain-English line, the note and the run times in each row come from Minuteform’s own parser. Times are listed for one day in the scheduler’s time zone.
| Expression | In plain English | Runs per day | Runs at |
|---|---|---|---|
0 * * * * | At minute 00 past every hour. | 24 | 00:00, 01:00, 02:00 … 23:00 |
17 * * * * | At minute 17 past every hour. | 24 | 00:17, 01:17, 02:17 … 23:17 |
0,30 * * * * | At minutes 00 and 30 past every hour. | 48 | 00:00, 00:30, 01:00 … 23:30 |
0 */2 * * * | At minute 00 past every 2nd hour. | 12 | 00:00, 02:00, 04:00, 06:00, 08:00, 10:00, 12:00, 14:00, 16:00, 18:00, 20:00, 22:00 |
0 */3 * * * | At minute 00 past every 3rd hour. | 8 | 00:00, 03:00, 06:00, 09:00, 12:00, 15:00, 18:00, 21:00 |
0 */4 * * * | At minute 00 past every 4th hour. | 6 | 00:00, 04:00, 08:00, 12:00, 16:00, 20:00 |
0 */6 * * * | At minute 00 past every 6th hour. | 4 | 00:00, 06:00, 12:00, 18:00 |
0 */8 * * * | At minute 00 past every 8th hour. | 3 | 00:00, 08:00, 16:00 |
0 */12 * * * | At minute 00 past every 12th hour. | 2 | 00:00, 12:00 |
0 1-23/2 * * * | At minute 00 past every 2nd hour from 01:00 through 23:59. | 12 | 01:00, 03:00, 05:00, 07:00, 09:00, 11:00, 13:00, 15:00, 17:00, 19:00, 21:00, 23:00 |
0 9-17 * * * | At minute 00 past every hour from 09:00 through 17:59. | 9 | 09:00, 10:00, 11:00, 12:00, 13:00, 14:00, 15:00, 16:00, 17:00 |
0 9-17 * * 1-5 | At minute 00 past every hour from 09:00 through 17:59, on Monday through Friday. | 9 on matching days | 09:00, 10:00, 11:00, 12:00, 13:00, 14:00, 15:00, 16:00, 17:00 |
0 */5 * * * | At minute 00 past every 5th hour. */5 restarts at 00:00 every day: after 20:00 the next run is 4 hours later, not 5. | 5 | 00:00, 05:00, 10:00, 15:00, 20:00 |
0 */7 * * * | At minute 00 past every 7th hour. */7 restarts at 00:00 every day: after 21:00 the next run is 3 hours later, not 7. | 4 | 00:00, 07:00, 14:00, 21:00 |
A step in the hour field gives an even interval only when it divides 24: 1, 2, 3, 4, 6, 8 and 12. For every 5 or 7 hours there is no five-field expression; a scheduler that counts from the last run, such as an EventBridge rate() schedule or a systemd timer with OnUnitActiveSec=, fits better.
02Three ways “every hour” goes wrong
* * * * *or* */1 * * *. A star in the minute field matches every minute, so both run 60 times an hour. Minuteform translates* */1 * * *as “Every minute from 00:00 through 23:59.” Check it.- Hour and minute swapped. The minute comes first.
* 0 * * *runs every minute from 00:00 to 00:59, not once at midnight. - Expecting
0 */5 * * *every 5 hours. It runs at 00, 05, 10, 15 and 20, then again at 00: the last gap is four hours, because the step restarts at midnight.
03Pick a minute other than :00
An hourly job does not have to start on the hour. GitHub’s documentation for the schedule event says runs can be delayed during periods of high load, that high-load times include the start of every hour, that some queued jobs may be dropped when load is high enough, and that a different time of the hour lowers the chance of delay. On a shared server, spreading hourly jobs over different minutes also keeps them from all starting at once.
04Whose hour? Time zones and daylight saving
An hourly job is the same in every zone with whole-hour offsets, but a job limited to certain hours, such as 0 9-17 * * 1-5, runs in the scheduler’s zone: the server’s zone for crontab, UTC for GitHub Actions unless you set timezone, and the kube-controller-manager’s local zone for a Kubernetes CronJob without spec.timeZone.
On daylight-saving days a local hour is skipped in spring and repeated in autumn. Amazon’s EventBridge Scheduler documentation says an invocation that falls on a non-existent time is skipped, and when clocks go back the schedule runs only once rather than repeating. Other schedulers differ; the cron and daylight saving reference lists every change in 2026–2027 and what crontab, Kubernetes and GitHub Actions do. Running hourly jobs in UTC avoids the question.
05When the job takes longer than an hour
cron starts the next run on time whether or not the last one has finished. Make the job take a lock and exit if the lock is held, or let the scheduler decide: a Kubernetes CronJob with concurrencyPolicy: Forbid skips a run while the previous Job is still running, and the Kubernetes documentation counts such a skipped run as missed. If runs routinely overlap, a longer interval such as every 2 hours is the simpler fix.
FAQQuestions people ask
What is the cron expression for every hour?
0 * * * * runs at minute 0 of every hour, 24 times a day. In crontab and Kubernetes, @hourly means the same thing.
How do I run a cron job every 2 hours?
Use 0 */2 * * * for 00:00, 02:00, 04:00 and so on, or 0 1-23/2 * * * for the odd hours. Every 3, 4, 6, 8 or 12 hours works the same way because those numbers divide 24.
Is * */1 * * * the same as every hour?
No. The star in the minute field matches every minute, so * */1 * * * runs every minute of every hour, 1,440 times a day. Put a number in the minute field: 0 * * * *.
How do I run a cron job every hour on weekdays during work hours?
0 9-17 * * 1-5 runs at 09:00, 10:00 and so on through 17:00, Monday to Friday, in the scheduler’s time zone: nine runs a day.
Why does 0 */5 * * * not run every 5 hours?
The step restarts at midnight. 0 */5 * * * runs at 00:00, 05:00, 10:00, 15:00 and 20:00, and the next run is at 00:00, four hours after 20:00. Only steps that divide 24 give an even interval.
REFSources
Platform syntax follows the official documentation below, checked on 5 Nov 2026.
- crontab(5) on man7.org: field order, steps,
@hourly - systemd.time(7):
hourly → *-*-* *:00:00; systemd.timer(5):OnUnitActiveSec= - Kubernetes CronJob:
@hourly, time zones,concurrencyPolicyand missed runs - GitHub Actions: schedule event: UTC default, high load at the start of every hour
- Amazon EventBridge Scheduler: schedule types:
cron()fields,rate(), daylight saving - Quartz CronTrigger tutorial and Spring CronExpression: seconds-first formats