Linux时间与NTP

timedatectl的使用方法

  • timedatectl
    查看当前时间的各种状态,例如当前时间,是否开启NTP等
[root@localhost ~]# timedatectl
      Local time: Wed 2018-11-07 23:50:05 CST
  Universal time: Wed 2018-11-07 15:50:05 UTC
        RTC time: Wed 2018-11-07 15:50:05
       Time zone: Asia/Shanghai (CST, +0800)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: n/a

你可能感兴趣的:(Linux时间与NTP)