⏱OpsTools

Cron Expression for Every 4 Hours

0 */4 * * *→Runs every 4 hours at minute 0
0
Minute
0–59
*/4
Hour
0–23
*
Day
1–31
*
Month
1–12
*
Weekday
0–7

Quick Examples

How It Works

The expression 0 */4 * * * runs at minute 0 of every even hour that is a multiple of 4: 00:00, 04:00, 08:00 … 20:00.

Common Use Cases

  • 1Quarter-day batch jobs
  • 2Certificate checks

Linux Crontab Example

0 */4 * * * /usr/bin/certbot renew --dry-run

Add this line to your crontab with crontab -e

Need a custom schedule?

Build your own cron expression visually with our generator.

Open Generator →