nerdexam
LPI

117-102 · Question #391

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

(26 responses)
  • A
    8% (2)
  • B
    4% (1)
  • C
    8% (2)
  • E
    81% (21)

Community Discussion

No community discussion yet for this question.

Full 117-102 Practice