synchronize time with NTP server on Ubuntu


#1

Transfered from Linux Config Disqus comments:

Question:
Hi Could u please tell me how to synchronize time with NTP server on Ubuntu THX

Answer:
First you need to install ntpdate package. Login as a root install enter:

# apt-get install ntpdate 

When installed execute a following command as a root user:


# ntpdate pool.ntp.org 

For this to work you need to be connected to internet.


#2