tooloora

Cron every 5 minutes — */5 * * * * explained

Why the slash means a step, why */5 lands on 0, 5, 10 … and when a plain list is the better spelling.

Runs locally — nothing is uploaded

Examples

In plain words

Every 5 minutes, every day.

Field by field

  • */5Minute

    every 5 minutes

    Matches: 0, 5, 10, 15, 20, 25 … 55

  • *Hour

    every hour

    Matches: 0, 1, 2, 3, 4, 5 … 23

  • *Day of month

    on every day of the month

    Matches: 1, 2, 3, 4, 5, 6 … 31

  • *Month

    in every month

    Matches: Jan, Feb, Mar, Apr, May, Jun … Dec

  • *Day of week

    on every weekday

    Matches: Sun, Mon, Tue, Wed, Thu, Fri, Sat

Next runs

Calculating the next runs …

These times apply in the time zone configured on the server. Cron converts nothing; this preview uses your device clock.

The expression stays in your browser — it is never sent to a server.

Other expressions

*/5 * * * * runs the job every five minutes: at minute 0, 5, 10 and so on up to 55, in every hour of every day. The slash is a step, not a division; it walks through the whole minute range from its starting point in steps of five, which gives twelve runs per hour.

What does the slash in */5 mean?

It sets a step width on a range. The star before it stands for the full range 0 to 59, and /5 picks every fifth value from its start: 0, 5, 10 … 55. The same works on an explicit range, and there the start matters: 10-20/3 hits 10, 13, 16 and 19, not 12, 15 and 18.

Is */5 the same as 0,5,10,15,20,25,30,35,40,45,50,55?

Yes, exactly the same set of minutes, and every cron implementation treats them identically. The list is worth using when the values are irregular, for example 0,7,42. For a regular rhythm the step form is shorter and easier to change later, which is why almost every real crontab uses it.

Why do steps like */7 leave an uneven gap?

Because the step restarts at the top of every hour. */7 fires at minute 0, 7, 14, 21, 28, 35, 42, 49 and 56 — and then the next run is at minute 0 again, only four minutes later. Only divisors of 60 (2, 3, 4, 5, 6, 10, 12, 15, 20, 30) give a truly even rhythm across the hour boundary.

How to add the expression

  1. Open the crontab with crontab -e.
  2. Add */5 * * * * followed by the command, using absolute paths — cron starts with a minimal PATH.
  3. Send output somewhere useful, for example >> /var/log/meinjob.log 2>&1, so a failing run leaves a trace.
  4. Check the next run times in the explainer above to confirm the rhythm you expect.

Frequently asked questions

Does */5 start counting from the moment I save the crontab?

No. Cron matches wall-clock minutes, not elapsed time since the entry was added. A job saved at 14:03 first runs at 14:05, then 14:10 — the schedule is anchored to the clock, never to your edit.

How do I offset the job so it does not collide with everything else?

Use a starting value instead of the star: 2-59/5 runs at minute 2, 7, 12 and so on. That keeps the five-minute rhythm but moves it off the round minutes where most other jobs are scheduled.

What is the shortcut for every five minutes?

There is none. Cron only ships the @hourly, @daily, @midnight, @weekly, @monthly, @yearly, @annually and @reboot shortcuts, and @hourly is already the finest of them; anything below an hour has to be written out with the step syntax.

Is my crontab line uploaded anywhere?

No. This explainer parses the expression in your browser and computes the next run times on your device. Nothing is transmitted, nothing is stored, and you can verify that by loading the page and switching to airplane mode.