A crontab line begins with the fields `*/10 8-17 * * 1-5`. When does the job run?

LPIC-1 Exam 102-500, objective 107. Administrative tasks medium

Draft — not checked yet. This question was written from the published exam objectives and cites the clause it comes from, but nobody has yet read it against that clause and signed for it.

It is kept out of search results and out of mock exams until they have. Read the source below before you take the answer as settled.

The options

Not correct Ten minutes past every hour, between 08:00 and 17:00, Monday through Friday

Wrong. Ten minutes past the hour would be written as a plain 10 in the minute field. The */ prefix makes it a repeating step, not a single value.

Not correct Every 10 minutes, for 10 hours, on the first five days of each month

Wrong. The fourth field is the month and the fifth is the day of week; day of month is the third field, which here is *. 1-5 therefore selects weekdays, not the 1st to 5th of the month.

Not correct At 10 minutes past 08:00 and 17:00 only, on the first five days of the week

Wrong on both counts: 8-17 is a range covering every hour in between, not two separate hours, and */10 is a step rather than a single minute.

Correct Every 10 minutes, during the hours 08:00 to 17:59, Monday through Friday

Correct. */10 in the minute field is a step: minutes 0, 10, 20, 30, 40 and 50. 8-17 is an inclusive hour range, so the last run of the day starts at 17:50. 1-5 in the day-of-week field is Monday to Friday.

Why

Within a field, a comma lists values (0,15,30), a hyphen gives an inclusive range (8-17), and a slash gives a step over a range (*/10 is shorthand for 0-59/10 in the minute field). Steps may be combined with ranges, as in 8-17/2 for every second hour of the working day.

Where this comes from

Cited
LPI exam objective 107.2
What it says
Understand ranges, lists and step values in crontab fields.

Practise this

Reading one question is not practice. The trainer will draw a set from objective 107 and space the ones you get wrong.

Practise LPIC-1 Exam 102-500