CompTIA
XK0-005 · Question #885
A Linux administrator needs to schedule a system backup script /usr/local/bin/backup.sh to run every night at 1:30 a.m. Which of the following entries should the administrator add to system crontab…
The correct answer is C. 30 1 * * * /usr/local/bin/backup.sh. The crontab schedule format is minute hour day-of-month month day-of-week. To run at 1:30 AM every day, you specify 30 for minutes and 1 for hours: 30 1 * /usr/local/bin/backup.sh
System Management
Question
A Linux administrator needs to schedule a system backup script /usr/local/bin/backup.sh to run every night at 1:30 a.m. Which of the following entries should the administrator add to system crontab to achieve the goal?
Options
- A1:30 * * * /usr/local/bin/backup.sh
- B1 30 * * * /usr/local/bin/backup.sh
- C30 1 * * * /usr/local/bin/backup.sh
- D
-
-
- 1 30 /usr/local/bin/backup.sh
-
-
How the community answered
(29 responses)- A3% (1)
- B7% (2)
- C90% (26)
Explanation
The crontab schedule format is minute hour day-of-month month day-of-week. To run at 1:30 AM every day, you specify 30 for minutes and 1 for hours: 30 1 * * * /usr/local/bin/backup.sh
Topics
#Cron#Job Scheduling#Linux Commands#System Administration
Community Discussion
No community discussion yet for this question.