Search for does */5 in crontab include minute 0 and the short answer is yes.
*/5 * * * *
That minute field steps 0–59 by five. The full list is:
0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55
Twelve starts every hour. Minute 0 is included. Guide: https://kepttools.com/guides/cron-every-5-minutes
Why people ask
Logs show a run at :00 and someone wonders if “every five minutes” should start at :05 only. On classic five-field cron, */5 is a step through the whole minute range, so the top of the hour is a normal tick—not a special case. The word “every” does not mean “starting after zero.”
Build or check the expression in the browser generator first:
https://kepttools.com/cron-generator?utm_source=devto&utm_medium=social&utm_campaign=cron-includes-minute-zero
The tool does not install the job. Copy the five fields—not the English summary. Crontab has no use for the words “every five minutes” sitting beside the expression.
Also remember timezone: fields follow the daemon’s clock. A :00 fire is midnight or top-of-hour there, not necessarily UTC, unless that is how the host is set.
Worked contrast: when minute 0 is missing
If you write:
5-59/5 * * * *
the range starts at 5, so minute 0 is out. First run of the hour is :05, then :10, through :55. Use that only when skipping the top of the hour is intentional. For plain every five minutes, keep */5 * * * *.
Related facts (same guide)
- Locked to the clock, not to when you saved the file. Install at 10:03 and the next run is still 10:05—not “five minutes from now.”
- No seconds field: one start when the minute begins. It does not re-fire at second 10 inside that minute.
- Classic cron will not wait for a long job to finish before the next tick—that is overlap, a separate problem from minute 0.
- Do not paste
*/5 * * * *into a systemdOnCalendarunit. Different language.
Same step idea appears in other intervals:
*/10 * * * * # 0, 10, 20, 30, 40, 50
*/15 * * * * # 0, 15, 30, 45
*/30 * * * * # 0 and 30
Each of those includes minute 0 as well. The pattern is consistent: a leading */n in the minute field starts at 0.
Honest limit
Limit: the generator explains five-field cron; it does not install the job or simulate your daemon. Confirm the list on the host that will run it.
Prove it
*/5 * * * * date >> /tmp/cron-every-5.log
After two lines, minutes should be five apart and divisible by 5—including runs that land on :00. Delete the test line afterward. Use journalctl -u cron or syslog, whichever your distro actually keeps.
Closing
Yes—*/5 includes minute 0. If your hour never fires at :00, you are probably not on plain */5. Check for 5-59/5 or a different minute field before you rewrite the command.
Full walkthrough: https://kepttools.com/guides/cron-every-5-minutes
Top comments (0)