Search tools

Cron expression for every 6 hours

0 */6 * * * runs four times a day at 00:00, 06:00, 12:00 and 18:00.

Runs entirely in your browser. Nothing you paste is sent to our server, stored or logged.

0 */6 * * *

When it runs next

What it means

A six-hour step splits the day into four equal quarters. It is a common default for SSL renewal checks, inventory feeds and search index rebuilds that need to run several times a day without staying warm every hour.

Remember that standard cron evaluates hours in the server's local time zone (or UTC in most containers). During daylight saving transitions in local zones, one interval in spring or autumn can effectively be five or seven hours apart.

Common variations

ExpressionRuns
0 3,9,15,21 * * *Shifted by 3 hours to avoid midnight spikes
20 */6 * * *20 minutes past every sixth hour
0 */12 * * *Twice a day instead of four times

As a crontab line

Add the command you want to run after the five fields, then save it with crontab -e:

0 */6 * * * /path/to/script.sh

Open it in the cron expression generator