0–59

0–23
everyfrom

1–31

1–12 or JAN–DEC

0–7 (0 and 7 = Sunday) or SUN–SAT

Common schedules

How to write it in Linux crontab

0 */2 * * * /path/to/command
  • 100% Free
  • No Sign-Up
  • No Credit Card
  • No Free Trial
  • No Pro Tier
  • No Watermarks

Nothing is uploaded. Just open it and start.

Cron Every 2 Hours

Runs at 00:00, 02:00, 04:00 and every second hour after, 12 times a day.

0 */2 * * *

Every 2 hours on the hour.

Field by field

FieldValueMeans
Minute0minutes 0
Hour*/2hours 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20 and 22
Day of month*every day
Month*every month
Day of week*every day

Other common schedules

Build or explain any cron expression →

Frequently asked questions

What is the cron expression for every 2 hours?
0 */2 * * *. In words: Every 2 hours on the hour. It runs in the time zone of the machine or service that runs it.
How do I write it for Quartz, Spring, GitHub Actions or AWS?
GitHub Actions: 0 */2 * * *. Kubernetes CronJob: 0 */2 * * *. Quartz: 0 0 */2 * * ?. Spring @Scheduled: 0 0 */2 * * *. AWS EventBridge: cron(0 */2 * * ? *).
Can I check when it runs next?
Yes. The tool above lists the next runs in your time zone or any other, shows a month calendar of runs, and warns about runs the clocks skip or repeat. Nothing is uploaded.

Spotted a bug or have a suggestion?

Found something broken, have an idea, or just want to say thanks about any of our tools? Every message reaches a real person.