Every 3 hours on the hour: 00:00, 03:00 … 21:00.
| Runs per day | 8 |
|---|---|
| Runs per week | 56 |
| Runs per year (2027) | 2,920 |
| Gap between runs | 3 hours |
| Time of day | 00:00, 03:00, 06:00, 09:00, 12:00, 15:00, 18:00, 21:00 |
Next run times
Field by field
| Field | Value | Means |
|---|---|---|
| Minute (0-59) | 0 | :00 |
| Hour (0-23) | */3 | every 3 hours, starting at 0 (00:xx, 03:xx, 06:xx, 09:xx, 12:xx, 15:xx, 18:xx and 21:xx) |
| Day of month (1-31) | * | every day of the month |
| Month (1-12) | * | every month |
| Day of week (0-7, 0 and 7 = Sunday) | * | every day of the week |
The same schedule on other platforms
| Platform | Write it as | Notes |
|---|---|---|
| Linux crontab | 0 */3 * * * /path/to/script.sh | Runs in the server's time zone. |
| Kubernetes CronJob | schedule: "0 */3 * * *" | Add timeZone: "Etc/UTC" (or any tz name) under spec; without it, the controller's time zone is used. |
| GitHub Actions | - cron: '0 */3 * * *' | Runs in UTC unless you add timezone: under the cron line. Runs can be delayed, especially at the start of the hour. |
| Jenkins | cron('0 */3 * * *') | Same five fields. Jenkins recommends H to spread load: H */3 * * * runs at the same rate but at a minute picked from the job name. |
| Quartz | 0 0 0/3 * * ? | Seconds come first; one of the two day fields must be ?. |
| AWS EventBridge | cron(0 0/3 * * ? *) | Six fields, year last; one day field must be ?. |
| Spring @Scheduled | @Scheduled(cron = "0 0 */3 * * *") | Seconds come first. |
| Azure Functions | 0 0 */3 * * * | Seconds come first. Runs in UTC unless the app setting WEBSITE_TIME_ZONE is set. |
| systemd timer | OnCalendar=*-*-* 00/3:00:00 | Checked with systemd-analyze calendar. |
Schedulers also differ in day-of-week numbering, time zones, special characters like L and ?, and what happens when the clocks change. Every one is compared, with links to its official docs, in the cron dialect registry.
Start it at a different hour
*/3 always counts from midnight. To shift the whole schedule, give the step a starting point with a range:
| Expression | Fires at |
|---|---|
0 */3 * * * | 00:00, 03:00, 06:00, 09:00, 12:00, 15:00, 18:00, 21:00 |
0 1-23/3 * * * | 01:00, 04:00, 07:00, 10:00, 13:00, 16:00, 19:00, 22:00 |
0 2-23/3 * * * | 02:00, 05:00, 08:00, 11:00, 14:00, 17:00, 20:00, 23:00 |
Write 2-23/3, not 2/3. Debian/Ubuntu cron and cronie both reject 2/3 ("bad hour"), even though Quartz and Kubernetes accept it.
Common mistakes
* */3 * * * looks similar but has * in the minute field, so it runs every minute of each matching hour: 480 times a day instead of 8. The minute must be a number, as in 0 */3 * * *.
The count also restarts every day at midnight: it is not measured from when you saved the crontab or from the last run. To run a fixed time after the previous run, see the systemd option below.
Every 3 hours after the last run (systemd)
cron only knows clock times. If you need a gap measured from the previous run, a systemd timer can do it:
[Timer] OnBootSec=5min OnUnitActiveSec=3h AccuracySec=1s
OnUnitActiveSec= counts from when the job last started; OnUnitInactiveSec= counts from when it last finished. Set AccuracySec=: the default of 1 minute lets systemd fire up to a minute late to save wake-ups.
If a run can take longer than the gap
Unix cron doesn't check whether the previous run has finished before starting the next one. Wrap the command in flock -n so a new run gives up immediately (exit status 1) while the old one holds the lock:
0 */3 * * * flock -n /tmp/myjob.lock /path/to/script.sh
flock comes from util-linux.
Avoid running exactly on the hour
Many schedules fire at :00, and that's when shared schedulers are busiest. GitHub's docs say scheduled runs can be delayed during high load, especially at the start of every hour. Ways to move off :00:
- Pick a fixed odd minute:
17 */3 * * *. - Jenkins:
H */3 * * *. Jenkins picks a minute from a hash of the job name, so each job gets its own stable minute. - cronie (Fedora, RHEL, Amazon Linux, Arch):
~ */3 * * *picks a random minute when the crontab is loaded, andRANDOM_DELAY=adds a random delay. Debian/Ubuntu cron rejects~. - systemd:
RandomizedDelaySec=adds a new random delay each time.
Related schedules
30 * * * *: Every hour at half past0 */2 * * *: Every 2 hours0 */4 * * *: Every 4 hours0 */5 * * *: Every 5 hours (not really)0 */6 * * *: Every 6 hours0 */12 * * *: Every 12 hours (twice a day)
Step-by-step guide: How to run a cron job every hour. All schedules: common cron expressions. Checking a whole crontab file? Use the crontab checker.
Sources
Run times were checked against an independent cron library (croniter) and this site's engine; every platform version above was parsed and compared run-for-run, and the systemd line was checked with systemd-analyze calendar. Last verified 18 November 2026.
- Debian crontab(5): fields, day-of-month OR day-of-week rule
- Quartz CronTrigger tutorial
- AWS EventBridge: cron expressions
- Spring CronExpression (javadoc)
- Azure Functions timer trigger: NCRONTAB
- Kubernetes CronJob
- GitHub Actions: schedule event
- Jenkins Pipeline syntax: triggers / cron
- systemd.time(7): calendar events
- systemd.timer(5): OnCalendar, OnUnitActiveSec, AccuracySec, RandomizedDelaySec
- flock(1): util-linux
- cronie crontab(5): step values, ~ random ranges, RANDOM_DELAY