CompTIA
LX0-102 · Question #278
Which of the following crontab entries could be used to set the system time at regular intervals?
The correct answer is E. 1 0 * * * /usr/sbin/ntpdate ntp1.digex.net > /dev/null 2>&1. See the full explanation below for the reasoning.
Question
Which of the following crontab entries could be used to set the system time at regular intervals?
Options
- A1 0 * * * date $d $t $24
- B1 0 * * * settime $d $t $24
- C1 0 * * * date<ntp1.digex.net
- D1 0 * * * /usr/sbin/runcron date <ntp1.digex.net
- E1 0 * * * /usr/sbin/ntpdate ntp1.digex.net > /dev/null 2>&1
How the community answered
(29 responses)- A14% (4)
- B3% (1)
- C3% (1)
- D7% (2)
- E72% (21)
Community Discussion
No community discussion yet for this question.