Cron expression for every 3 hours
0 */3 * * * triggers at minute 0 of every third hour: 00:00, 03:00, 06:00, 09:00, 12:00, 15:00, 18:00 and 21:00.
Runs entirely in your browser. Nothing you paste is sent to our server, stored or logged.
0 */3 * * *
When it runs next
What it means
Fixing the minute field to 0 ensures the job runs once per three-hour boundary instead of every minute during those hours. Twenty-four divides evenly by three, so the schedule repeats identically each day (8 runs per day).
It fits cache refreshes, analytics rollups and catalog feeds that do not need hourly freshness. Using a non-zero minute like 15 avoids thundering herds at 00:00 and 12:00 when many shared services run their own jobs.
Common variations
| Expression | Runs |
|---|---|
15 */3 * * * | 15 minutes past every third hour |
0 1-23/3 * * * | Offset hours: 01:00, 04:00, 07:00, 10:00... |
0 */3 * * 1-5 | Every 3 hours on weekdays only |
As a crontab line
Add the command you want to run after the five fields, then save it with
crontab -e:
0 */3 * * * /path/to/script.sh
Other common schedules
-
Every minute
* * * * * -
Every 5 minutes
*/5 * * * * -
Every 10 minutes
*/10 * * * * -
Every 15 minutes
*/15 * * * * -
Every 30 minutes
*/30 * * * * -
Every hour
0 * * * * -
Every 2 hours
0 */2 * * * -
Every day at midnight
0 0 * * * -
Every weekday
0 9 * * 1-5 -
Every week
0 0 * * 0 -
Every month
0 0 1 * * -
Every 2 minutes
*/2 * * * * -
Every 4 hours
0 */4 * * * -
Every 6 hours
0 */6 * * * -
Every 12 hours
0 */12 * * * -
Every day at noon
0 12 * * * -
Every year
0 0 1 1 *