Minuteform / Every 5 minutes
$ crontab -l | grep '*/5'
Cron every 5 minutes: */5 * * * *
To run a job every five minutes, use */5 * * * *. In a crontab that is the line */5 * * * * /path/to/job.sh. This page shows what each field means, how the same schedule is written for other schedulers, and the details that cause surprises: steps that restart each hour, offsets, and runs that overlap.
*/5 * * * * runs at minute 00, 05, 10 … 55 of every hour: 12 runs an hour, 288 a day. The times are fixed to the clock, not counted from when the job last finished. See the next runs in your time zone.
| Where | Every 5 minutes |
|---|---|
Unix / Linux crontab (crontab -e) | */5 * * * * /path/to/job.sh |
| systemd timer | OnCalendar=*:0/5 |
| Kubernetes CronJob | schedule: "*/5 * * * *" |
| GitHub Actions (schedule guide) | - cron: '*/5 * * * *' |
| AWS EventBridge | rate(5 minutes) or cron(0/5 * * * ? *) |
Every hour instead? See cron every hour and every N hours. To read an expression you already have, paste it into the cron expression translator.
01Field by field
| Field | Value | Meaning |
|---|---|---|
| minute | */5 | Every fifth minute from 0: 0, 5, 10 … 55. Same as 0-59/5. |
| hour | * | Every hour |
| day of month | * | Every day |
| month | * | Every month |
| day of week | * | Every weekday |
A step works inside its own field. When the job is installed at 10:03, the first run is 10:05, not 10:08, and the minute count starts again from :00 each hour.
02The same schedule in other schedulers
Five-field cron is shared by crontab, GitHub Actions and Kubernetes. Quartz and Spring add a seconds field; EventBridge adds a year and needs ? in one day field. The dialect comparison explains each difference.
| Scheduler | Every 5 minutes | Note |
|---|---|---|
| crontab (Vixie, cronie) | */5 * * * * /path/to/job.sh | Runs in the server’s time zone, or CRON_TZ in cronie. |
| GitHub Actions | - cron: '*/5 * * * *' | Five minutes is the shortest interval GitHub allows. Runs can be delayed, or dropped under heavy load, and only run on the default branch. |
| Kubernetes CronJob | schedule: "*/5 * * * *" | Add concurrencyPolicy: Forbid if runs must not overlap. |
| Quartz | 0 0/5 * * * ? | Leading seconds field; ? in day of week. |
Spring @Scheduled | 0 */5 * * * * | Six fields, seconds first. |
| AWS EventBridge | cron(0/5 * * * ? *) | Or rate(5 minutes), which counts from when the rule was created rather than from the clock. |
| systemd timer | OnCalendar=*:0/5 | Calendar event: every hour at minute 0, 5, 10 … |
Complete examples
crontab. Run crontab -e, add the line, save, then check it with crontab -l. Step values such as */5 come from Vixie cron and are accepted by cronie, Debian cron and FreeBSD cron, but the POSIX crontab standard only defines lists and ranges. On a cron without steps, list the minutes:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /path/to/job.sh
systemd timer. A timer starts the service with the same name. OnCalendar=*:0/5 is short for *-*-* *:00/5:00; systemd-analyze calendar '*:0/5' prints the normalized form and the next elapse. Timers are accurate to one minute by default, so set AccuracySec=1s if the exact second matters.
# /etc/systemd/system/job.timer [Unit] Description=Run job.service every 5 minutes [Timer] OnCalendar=*:0/5 [Install] WantedBy=timers.target # /etc/systemd/system/job.service [Service] Type=oneshot ExecStart=/path/to/job.sh # then: systemctl daemon-reload && systemctl enable --now job.timer
Kubernetes CronJob. concurrencyPolicy: Forbid skips a run while the previous Job is still active; timeZone is optional and defaults to the controller’s zone.
apiVersion: batch/v1
kind: CronJob
metadata:
name: every-five-minutes
spec:
schedule: "*/5 * * * *"
timeZone: "Etc/UTC"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
containers:
- name: job
image: busybox:1.28
command: ["/bin/sh", "-c", "date"]
restartPolicy: OnFailure
GitHub Actions. Five minutes is the shortest interval GitHub allows, schedules run in UTC unless you add timezone, and runs can start late around the top of the hour. The GitHub Actions cron schedule and time zone guide has a full workflow file.
on:
schedule:
- cron: '*/5 * * * *'
AWS EventBridge. rate(5 minutes) starts counting when the schedule starts (its start date, or as soon as it is created), so runs are not tied to :00, :05 and so on. cron(0/5 * * * ? *) is clock-aligned: six fields with a year, and ? in one of the day fields. EventBridge Scheduler also takes --schedule-expression-timezone.
03Other minute intervals
A step gives an even interval only when it divides 60. Otherwise the last gap of each hour is shorter, because the count restarts at :00. Minuteform shows a warning when this happens.
| Expression | Runs at | Runs per day |
|---|---|---|
*/10 * * * * | :00, :10, :20, :30, :40, :50 | 144 |
*/15 * * * * | :00, :15, :30, :45 | 96 |
*/20 * * * * | :00, :20, :40 | 72 |
*/30 * * * * | :00, :30 | 48 |
*/7 * * * * | :00, :07 … :56, then :00 again: the last gap is 4 minutes, not 7 | 216 |
*/45 * * * * | :00 and :45: gaps of 45 and 15 minutes | 48 |
Every 90 minutes needs two lines
No single five-field expression runs every 90 minutes. Two lines together give 00:00, 01:30, 03:00, 04:30 … 22:30, 16 runs a day:
0 */3 * * * /path/to/job.sh 30 1-22/3 * * * /path/to/job.sh
04Start at a different minute
Many jobs on */5 all start at :00, :05 and so on. To spread load, or to avoid the top of the hour when GitHub Actions is busiest, give the step a range that starts later.
| Expression | Runs at |
|---|---|
2-59/5 * * * * | :02, :07, :12 … :57 |
4-59/5 * * * * | :04, :09, :14 … :59 |
05When a run takes longer than five minutes
cron starts the next run on time whether or not the previous one has finished. For a job that can run long, add a lock so a second copy exits straight away:
*/5 * * * * flock -n /tmp/job.lock /path/to/job.sh >> /var/log/job.log 2>&1
- Kubernetes:
concurrencyPolicy: Forbidskips a run while the previous Job is still active. - GitHub Actions: a workflow-level
concurrencygroup stops scheduled runs from piling up. - Commands: cron runs with a small environment, so use absolute paths, and write
\%for a literal percent sign; an unescaped%ends the command in crontab.
FAQQuestions people ask
Is */5 * * * * the same as 0-59/5 * * * *?
Yes. In five-field cron a star with a step covers the whole range of the field, so both run at minutes 0, 5, 10 and so on through 55.
Does it run five minutes after the last run finished?
No. Cron matches clock times. A job installed at 10:03 first runs at 10:05, and a run that takes seven minutes overlaps the next one unless you add a lock.
Can GitHub Actions run a workflow every 5 minutes?
Yes, five minutes is the shortest interval GitHub supports. Scheduled runs use UTC unless you set timezone, can start late when GitHub is busy, and may be dropped under very high load.
How do I run every 5 minutes only during working hours?
Restrict the hour and weekday fields: */5 9-17 * * 1-5 runs from 09:00 to 17:55, Monday to Friday. Preview it in your time zone.
What is the Quartz or Spring version?
Both add a seconds field first. Quartz: 0 0/5 * * * ?. Spring @Scheduled: 0 */5 * * * *. Minuteform checks the five-field form; drop the leading seconds to preview it.
REFSources
Platform syntax follows the official documentation linked below. Vendors update their docs, so follow the links for the current wording.
- crontab(5) on man7.org: steps,
%in commands,CRON_TZ, the day-of-month OR day-of-week rule and daylight saving - GitHub Actions: schedule event: 5-minute minimum, delays and dropped runs under load, UTC default and
timezone, no@daily - Kubernetes CronJob:
schedule,timeZoneandconcurrencyPolicy - Quartz 2.3 CronTrigger tutorial
- Spring CronExpression
- Amazon EventBridge schedule expressions (
cron()andrate()) - systemd.time(7) calendar events and systemd.timer(5)
Persistent= - flock(1) from util-linux
- POSIX crontab: fields take an asterisk, numbers, ranges and lists, with no step syntax
- EventBridge Scheduler schedule types: when
rate()starts,cron()fields and--schedule-expression-timezone