How to correct server time in CentOS, Ubuntu, Debian and SUSE
How to correct server time in CentOS 6, 7, 8, RHEL 8, Ubuntu 16, 18, 20, Debian 9, 10, SUSE 15
Overview: This article describes how to correct server time across CentOS, RHEL, Ubuntu, Debian, and SUSE using ntpdate or chrony, depending on the distribution.
1. How to correct server time in CentOS 6 and 7?
root@centos ~]# yum install ntpdate -y
root@centos ~]# ntpdate pool.ntp.org
2. How to correct server time in CentOS 8?
root@centos ~]# yum install chrony -y
root@centos ~]# chronyd -q 'server 0.europe.pool.ntp.org iburst'
3. How to correct server time in RHEL 8?
root@centos ~]# yum install chrony -y
root@centos ~]# chronyd -q 'server 0.europe.pool.ntp.org iburst'
4. How to correct server time in Ubuntu 16, 18, 20?
root@ubuntu ~]# apt install ntpdate -y
root@ubuntu ~]# ntpdate pool.ntp.org
5. How to correct server time in Debian 9 and 10?
root@debian ~]# apt install ntpdate -y
root@debian ~]# ntpdate pool.ntp.org
6. How to correct server time in SUSE 15?
root@suse ~]# zypper install ntp -y
root@suse ~]# ntpdate pool.ntp.org
Related Articles: