How to synchronization time in Linux

show date and time

debian@virtual-machine:~$ timedatectl status
               Local time: Thu 2024-12-19 13:21:58 HKT
           Universal time: Thu 2024-12-19 05:21:58 UTC
                 RTC time: Thu 2024-12-19 05:21:57
                Time zone: Asia/Hong_Kong (HKT, +0800)
System clock synchronized: no
              NTP service: n/a
          RTC in local TZ: no

Install Systemd-timesyncd Service

if the System clock synchronized is displaed no, you should install systemd-timesyncd Service.

debian@virtual-machine:~$ sudo apt install systemd-timesyncd

And then a few seconds late, your system time wil be sysnchronized.

Leave a Reply