BSD Specialist (LPIC-OT 702) — Question 2
Which line in a cron job runs myscript once per hour?
Answer options
- A. * * * * * /pathto/myscript
- B. 0 * * * * /pathto/myscript
- C. * 0 * * * /pathto/myscript
- D. * * 0 * * /pathto/myscript
- E. * * * 0 * /pathto/myscript
Correct answer: D
Explanation
The correct answer is D, as it specifies that myscript should run at any minute of the 0th hour every day. Option A runs the script every minute, option B runs it at the start of every hour, option C runs it at midnight, and option E runs it every minute on Sundays, making them incorrect for the requirement of running it once per hour.