Crontab every 3 hours
0 */3 * * *
The cron expression 0 */3 * * * runs a task every 3 hours. A crontab line has five fields: minute, hour, day of month, month and day of week. Copy the ready expression with the button above and paste it into your crontab.
Expression fields
| Minute | Hour | Day of month | Month | Day of week |
|---|---|---|---|---|
0 | */3 | * | * | * |
| exactly 0 | step 3 | any | any | any |
How often it runs
- 8 runs per day
- 56 runs per week
Run times during the day:
00:00, 03:00, 06:00, 09:00, 12:00, 15:00, 18:00, 21:00
FAQ
How to add 0 */3 * * * to crontab?
Open your cron jobs with crontab -e and add the following line, then save the file (the job will run every 3 hours):
0 */3 * * * /path/to/script.sh
What time does cron use?
Cron uses the server time. If the job is tied to an exact time, make sure the server timezone is set correctly.
Build your own expression in the builder →
Related schedules
- Cron every hour
- Cron every 2 hours
- Cron every 4 hours
- Cron every 6 hours
- Cron every 8 hours
- Cron every 12 hours
The most popular crontab expressions
- Cron every 5 minutes
- Cron every 10 minutes
- Cron every 15 minutes
- Cron every 30 minutes
- Cron every hour
- Cron every 2 hours
- Cron every 4 hours
- Cron every minute