ubuntu 下快速设置时间的命令

今天突然想起来服务器上的时间还没调整。用手机上的时间?还是用PC上的时间?貌似都不准。于是搜了一下,得到一个命令:ntpdate。
man 了一下 ntpdate,有奇异的收获:

ntpdate sets the local date and time by polling the Network Time Protocol (NTP) server(s) given as the server arguments to determine the correct time.

—————————————————–
$ sudo ntpdate cn.pool.ntp.org

Network Time Protocol,这个是我一直都知道的。但是从未想过有了 NTP 生活如此美好,特此记录之。晚上回去再同步笔记本的时间。

Leave a comment

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