LPI
117-102 · Question #41
Which crontab entry could be used to set the system time at regular intervals?
The correct answer is D. 1 0 * * * /usr/sbin/ntpdate ntp1.digex.net> /dev/null 2>&1. See the full explanation below for the reasoning.
Question
Which crontab entry 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 * * * /usr/sbin/runcron date <ntpl.digex.net
- D1 0 * * * /usr/sbin/ntpdate ntp1.digex.net> /dev/null 2>&1
- E1 0 * * * date<ntpl.digex.net
How the community answered
(57 responses)- A14% (8)
- B7% (4)
- C2% (1)
- D74% (42)
- E4% (2)
Community Discussion
No community discussion yet for this question.