Which crontab entry could be used to set the system time at regular intervals?

Which crontab entry could be used to set the system time at regular intervals?

Which crontab entry could be used to set the system time at regular intervals?

A.
1 0 * * * date $d$t$24

B.
1 0 * * * settime $d$t$24

C.
1 0 * * * /usr/sbin/runcron date <ntpl.digex.net

D.
1 0 * * * /usr/sbin/ntpdate ntp1.digex.net> /dev/null 2>&1

E.
1 0 * * * date<ntpl.digex.net

Explanation:
ntpdate – set the date and time via NTP

A) invalid option for date
B) settime is not a valid command
C,E) date does not get a NTP server via stdin



Leave a Reply 0

Your email address will not be published. Required fields are marked *