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
| Expression | Runs |
|---|---|
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
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 3 hours
0 */3 * * * -
Every 4 hours
0 */4 * * * -
Every 12 hours
0 */12 * * * -
Every day at noon
0 12 * * * -
Every year
0 0 1 1 *