Linux: How to synchronize time in Ubuntu or Debian?

2013-07-17 Linux

You can easily synchronize time of your server or local machine using ntpdate command.

Open terminal and type:


You can change the address of time server ( to a different one that suits you.

If you don’t have ntpdate installed, do I with below command:

sudo apt-get install ntp