Cron: Run at Midnight, 6am, Noon, 6pm
To run a cron job four times a day at midnight, 6am, noon and 6pm, use 0 0,6,12,18 * * *. This is the explicit, clock-aligned version of 'every 6 hours'.
The expression
0 0,6,12,18 * * * runs at midnight, 6am, noon and 6pm every day. Copy it straight into your crontab.
Clock-aligned every 6 hours
0 0,6,12,18 * * * fires at 00:00, 06:00, 12:00 and 18:00. It behaves like 0 */6 * * * but the listed form is unambiguous about which hours it hits.
The one mistake to avoid
Put the fixed value 0 in the minute field. If you leave the minute as *, the job runs every minute during each listed hour, not once. The comma list belongs in the hour field; the minute stays a single number.
Limit to weekdays
Append the day-of-week field to restrict the same times to Monday-Friday: 0 0,6,12,18 * * 1-5.
FAQ
What is the cron expression to run at midnight, 6am, noon and 6pm?
0 0,6,12,18 * * * — the comma-separated list in the hour field fires the job once at each listed hour, with minute fixed to 0.
Why does my job run every minute instead of at those hours?
Your minute field is * . A comma list in the hour field still needs a single minute (usually 0), otherwise it runs 60 times per listed hour.
Can I list more than two times in one cron line?
Yes. The hour field accepts any comma-separated list, e.g. 9,12,15 for three runs a day. Keep the minute fixed so each hour fires once.