Friday 6 November 2020

How to update ntp server in CENTOS 7-8?

To Check the hardware clock
#hwclock

To check the system clock
#timedatectl


To set the ntp on
#timedatectl set-ntp yes
 

To set the time
#timedatectl set-time HH:MM:SS
 

To start and enable ntpd services
#sudo systemctl start ntpd
#sudo systemctl enable ntpd
 

To set time to ntp server
#ntpdate -u clock.ncbs.res.in && hwclock -w