Skip to Content

How to correct server time in CentOS, Ubuntu, Debian and SUSE

How to correct server time in CentOS 6, 7, 8, Ubuntu 16, 18, 20, Debian 9, 10, SUSE 15

1. How to correct server time in CentOS 6 and 7

[email protected] ~]# yum install ntpdate -y

[email protected] ~]# ntpdate pool.ntp.org

 2. How to correct server time in CentOS 8

[email protected] ~]# yum install chrony -y

[email protected] ~]# chronyd -q 'server 0.europe.pool.ntp.org iburst'

 3. How to correct server time in Ubuntu 16, 18, 20

[email protected] ~]# apt install ntpdate -y

[email protected] ~]# ntpdate pool.ntp.org

 4. How to correct server time in Debian 9 and 10

[email protected] ~]# apt install ntpdate -y

[email protected]ebian ~]# ntpdate pool.ntp.org

 5. How to correct server time in SUSE 15

[email protected] ~]# zypper install ntp -y

[email protected] ~]# ntpdate pool.ntp.org