Friday, December 17, 2021

Using the timedatectl command to control your Linux time and time zone

The timedatectl command allows you to both query and change the system clock and its settings on Linux systems.

To display the current settings, use the command by itself—with no arguments. You should see something like this:

$ timedatectl
               Local time: Thu 2021-12-16 11:12:31 EST
           Universal time: Thu 2021-12-16 16:12:31 UTC
                 RTC time: Thu 2021-12-16 16:12:31          <; real time clock
                Time zone: America/New_York (EST, -0500)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

The fields shown include the local time, universal time (the same around the globe), RTC (the real-time clock, usually an integrated circuit), and the time zone (America/New York” is the Eastern time zone). NTP is network time protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks. In this case, the RTC it is not set to the local time zone.

To read this article in full, please click here


Thanks to Sandra Henry-Stocker (see source)

No comments:

Post a Comment