Does */5 in crontab include minute 0? Yes, and here's why
A common question is whether the */5 cron expression runs at the top of the hour, and the answer is yes: it expands to minutes 0, 5, 10 through 55, so minute 0 is included. The step syntax begins at zero across the full minute range, meaning "every five minutes" does not start at :05. The article contrasts this with 5-59/5, which starts at 5 and skips minute 0 unless that exclusion is intended. Schedules are evaluated against the host's clock and timezone, not when the entry was saved, and cron has no seconds field. The same rule applies to */10, */15, and */30, each of which includes minute 0, and a simple test line can confirm behavior on the target system.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in