Linux自动更新时间

Can use ntpdate or rdate command to sync the datetime with remote server.

i.e.:

# ntpdate remote_server


or

# rdate -s remote_server


Also, sync the remote server periodically is a good idea!

# crontab -e

# auto sync with time server at 0:00 everyday
0 0 * * * rdate -t 60 -s stdtime.gov.hk
posted @ 2013-06-16 00:33  Bevis.zhao  阅读(184)  评论(0编辑  收藏  举报