Field-by-field breakdown
| Field | Value | Meaning |
|---|---|---|
| Minute | */15 | 0, 15, 30, and 45 |
| Hour | * | Every hour |
| Day of month | * | Every day of the month |
| Month | * | Every month |
| Day of week | * | Every day of the week |
Copy-paste examples
Linux crontab
# crontab -e
*/15 * * * * /usr/local/bin/my-job.sh >> /var/log/my-job.log 2>&1
Kubernetes CronJob
apiVersion: batch/v1
kind: CronJob
metadata:
name: my-job
spec:
schedule: "*/15 * * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: my-job
image: busybox:1.36
command: ["sh", "-c", "date; echo Hello from cron"]
GitHub Actions
on:
schedule:
- cron: '*/15 * * * *' # always UTC
GitHub Actions evaluates schedules in UTC, does not accept macros such as @daily, and will not run workflows more often than every 5 minutes; runs can also be delayed during periods of high load.
Common variations
Click an expression to load it into the tool above.
| Cron expression | Schedule |
|---|---|
| Every 15 minutes, between 8:00 AM and 6:59 PM, Monday through Friday. | |
| Every 15 minutes, minutes 5 through 59 past the hour. | |
| At minutes 0, 15, 30, and 45 past the hour. | |
| Every 15 minutes, on weekends (Saturday and Sunday). |
Frequently asked questions
What does */15 * * * * mean in cron?
Every 15 minutes. The five fields are minute */15, hour *, day of month *, month * and day of week *.
How do I run a cron job every 15 minutes in Linux?
Run crontab -e, add the line */15 * * * * /path/to/command, then save and exit. Use absolute paths, redirect output to a log file, and confirm it runs with grep CRON /var/log/syslog.
When will */15 * * * * run next?
It depends on the current time and the time zone of the machine running cron. The calculator on this page shows the next 5 run times in your local time zone; on a server, cron uses the system time zone, which is often UTC.