User Tools

Site Tools


linux:classnotes:rh134:systemlogs:time

Maintain Accurate Time

THe timedatectl commands gives overview of current time-related system settings

[user@host ~]$ timedatectl
               Local time: Wed 2022-03-16 05:53:05 EDT
           Universal time: Wed 2022-03-16 09:53:05 UTC
                 RTC time: Wed 2022-03-16 09:53:05
                Time zone: America/New_York (EDT, -0400)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

To change the time zone use To find timezones you can use can also change the time zone using tzselect

or

 timedatectl list-timezones | grep -i dublin

Then you can use

 timedatectl set-timezone Europe/Dublin

To set the time you would use

timedatectl set-time 9:00:00

Timectl also enables or disables ntp synchronization with

timedatectl set-ntp false 

you still need to configure chronyd

Configure and Monitor chronyd

linux/classnotes/rh134/systemlogs/time.txt · Last modified: by 127.0.0.1