Skip to main content
Linux AdministrationMediumSingle Choice

Linux Administration Question

Statement

Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?

#crontab#cron#scheduling#day-of-week
A

0 * * * 30 myscript

B

30 * * * 6 myscript

C

30 0 * * 0 myscript

D

30 0-23 * * 0 myscript

Correct
E

0 0-23 * * 30 myscript

Resolution & Explanations

The cron format is minute hour day_of_month month day_of_week. 30 * * * 0 means 30th minute, every hour, every day of the month, every month, Sunday (0).