CompTIA
XK0-004 · Question #277
A junior systems administrator needs to schedule a backup script named /scripts/backup.sh and make the correct changes to the crontab. Which of the following crontab entries would run the script…
The correct answer is C. 5 2 * * 1. Minute (0 - 59) 0= every minute Hour (0 - 23) 0= every hour Day of month (1 - 31) Day of week (0 - 7) (Sunday=0 or 7)
Scripting, Containers and Automation
Question
A junior systems administrator needs to schedule a backup script named /scripts/backup.sh and make the correct changes to the crontab. Which of the following crontab entries would run the script every Monday at 2:05 a.m.?
Options
- A1 * * 5 2
- B2 5 * * 1
- C5 2 * * 1
- D1 * * 2 5
- E5 2 * * 0 /scripts/backup.sh
How the community answered
(44 responses)- A5% (2)
- B2% (1)
- C93% (41)
Explanation
Minute (0 - 59) 0= every minute Hour (0 - 23) 0= every hour Day of month (1 - 31) Day of week (0 - 7) (Sunday=0 or 7)
Topics
#crontab#scheduling#cron syntax#task automation
Community Discussion
No community discussion yet for this question.