CompTIA Linux+ (XK0-004) — Question 115

A junior systems administrator is creating a cron job. The cron job requirements are as follows:
✑ Run the hello.sh script every hour (24 times in one day).
✑ Run it on Monday only.
Given this scenario, which of the following crontab options should be configured to meet these requirements?

Answer options

Correct answer: A

Explanation

The correct answer is A because it specifies that the script should run at the start of every hour (0) on the first day of the week (Monday). Option B incorrectly sets the time to 24, which is not valid in a cron context, while C and D do not meet the requirement of running the script only on Mondays and every hour.