One Day One Cmd

Place for playing with commands…

Day 69: Synchronize your PC with NTS

ODOC: If you want to set your system time accurate you have to install ntp for that. You can install it using following command, after then use any public time server to synchronize.

root@bala-desktop:~# apt-get install ntp
root@bala-desktop:~# ntpdate time.nist.gov

Some other public time servers:

pool.ntp.org

time.nist.gov

ntp.ubuntu.com

You have to stop the ntp server before doing the above things. you can do it by

root@bala-desktop:~# /etc/init.d/ntp stop
* Stopping NTP server ntpd                                              [ OK ]
Ex:
root@bala-desktop:~# ntpdate time.nist.gov
28 Mar 13:32:22 ntpdate[2632]: adjust time server 192.43.244.18 offset 0.027067 sec

With Regards,
V. Balakrishnan.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: