Schedule a cron job every hour with 0 * * * *

By TechCompare · Updated · How we check

0 * * * * is the canonical every-hour pattern. Use the @hourly shortcut if your cron daemon supports it (Vixie cron, cronie, most Linux distributions). For more complex hourly schedules, constrain the hour field rather than trying to do it through the minute field.

Calculator

Next runs of 0 * * * *

Example from Mon, Nov 9, 2026 at 8:00 AM.

  1. Mon, Nov 9, 2026 at 9:00 AM
  2. Mon, Nov 9, 2026 at 10:00 AM
  3. Mon, Nov 9, 2026 at 11:00 AM
  4. Mon, Nov 9, 2026 at 12:00 PM
  5. Mon, Nov 9, 2026 at 1:00 PM

To run a job at the top of every hour, use 0 * * * *. The zero fixes the minute to exactly :00, and the asterisk in the hour field means every hour. At 14:00, 15:00, 03:00, the job fires.

Schedule pattern
Every hour
every-hour
Category
Common Patterns
Standard cron expression patterns

How this is calculated

If you want the job to run at a different minute past the hour (say :30 for half-past), use 30 * * * *.

To run only during business hours, constrain the hour field: 0 9-17 * * * runs at the top of every hour from 9 AM to 5 PM, which is 9 runs a day. For every 2 hours, use 0 */2 * * *.

Most cron daemons also support the @hourly shortcut, which is equivalent to 0 * * * * and runs at the start of each hour.

Verdict

Use 0 * * * * for the top of every hour, and change one field for the variants. :30 needs 30 * * * *, business hours need an hour range like 9-17, and every other hour drops in */2 on the hour field. The @hourly alias works on Vixie cron and cronie, so if you only need the top of each hour it's the cleanest shorthand.

More Cron scenarios

Every 5 minutes
Running a cron job every 5 minutes uses the step operator in the minute field: */5 * * * *.
View details
Daily at midnight
0 0 * * * runs a job at exactly midnight (00:00) every day.
View details
Weekly schedule
0 0 * * 0 runs a job every Sunday at midnight.
View details

Frequently asked questions

How do I run a cron job every hour?
Use 0 * * * * in your crontab. The zero pins the minute to :00 and the asterisks leave hour, day, month, and weekday open, so the job fires at the top of every hour. Log rotation, cache warming, and hourly data aggregation are the classic use cases.
How do I schedule a cron job at 30 minutes past every hour?
Use 30 * * * *. The minute field alone controls the offset, so any value from 0 to 59 works the same way. For half-hourly, write */30 * * * *, and for every two hours at minute 15, combine them as 15 */2 * * *.
Should I use @hourly or 0 * * * *?
They mean the same thing on Vixie cron and cronie. BusyBox crond also supports @hourly when FEATURE_CROND_SPECIAL_TIMES is enabled, which has been the default since BusyBox 1.27. The explicit 0 * * * * form is still the most portable choice for Dockerfiles because custom BusyBox builds and other cron daemons can differ.