What does */5 mean in cron?
A step value: every 5th unit of that field. In the minute field, */5 means minutes 0, 5, 10 and so on, every five minutes. The slash sets the step, the asterisk is the full range, and you can combine with a range such as 10-30/5.
Answered in
Cron Expressions and the Gotchas That Bite in ProductionFive fields, four special characters, and a handful of traps: the OR rule, the tiny environment, silent output, overlapping runs and time zones.
Read the full analysisOther questions this article answers
More developer tooling questions
- What are the five fields of a cron expression?
- Why does my script work in the terminal but fail in cron?
- What happens if a cron job is still running when the next one starts?
- Is a container a lightweight virtual machine?
- What do Linux namespaces do?
- What do cgroups do?
- Why is access to the Docker socket dangerous?
Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the Developer Tooling beat.