>_

Cron expression for every 5 minutes

To run a job every 5 minutes, use the cron expression below. It means: Every 5 minutes, every hour, every day.

*/5 * * * * Every 5 minutes, every hour, every day

Field by field

Field Value Meaning
Minute */5 every 5
Hour * any
Day of month * any
Month * any
Day of week * any

Try it

minutehourday (month)monthday (week)

Presets

Next runs (your local time)

    Syntax on different platforms

    Linux crontab

    # crontab -e
    */5 * * * * /path/to/script.sh >> /var/log/job.log 2>&1

    GitHub Actions

    on:
      schedule:
        - cron: '*/5 * * * *'  # UTC

    Kubernetes CronJob

    apiVersion: batch/v1
    kind: CronJob
    metadata:
      name: my-job
    spec:
      schedule: "*/5 * * * *"
      timeZone: "America/New_York"
      jobTemplate:
        spec:
          template:
            spec:
              containers:
                - name: job
                  image: busybox
                  command: ["date"]
              restartPolicy: OnFailure

    Spring @Scheduled

    // Spring has an extra seconds field first
    @Scheduled(cron = "0 */5 * * * *")
    public void run() { /* ... */ }

    Note: cron runs in the time zone of the machine or platform. Servers and GitHub Actions usually use UTC; Kubernetes lets you set timeZone.

    More examples

    Open the full Cron Expression Parser →