CompTIA Linux+ (XK0-005) — Question 248
A systems administrator wants to ensure all the latest patches and updates are automatically synced to the local repository every two hours on Sundays through Tuesdays in the month of May. Which of the following cron entries can the administrator use to achieve this goal? (Choose two.)
Answer options
- A. 0 */2 * 5 0-3 /root/update-from-remote-to-local.sh
- B. 0 0,2,4,6,8,10,12,14 * 5 0-3 /root/update-from-remote-to-local.sh
- C. 0 0,2,4,6,8,10,12,14 * 5 0-2 /root/update-from-remote-to-local.sh
- D. 0 0-23/2 * 5 0-3 /root/update-from-remote-to-local.sh
- E. 0 0-23/2 * 5 0-2 /root/update-from-remote-to-local.sh
- F. 0 */2 * 5 0-2 /root/update-from-remote-to-local.sh
Correct answer: E
Explanation
The correct answer is E because it specifies running the script every two hours on Sundays through Tuesdays in May. Options A and F do not limit the execution to only Sundays through Tuesdays in May, while options B, C, and D do not run every two hours as required.