O'Reilly logo

Linux Pocket Guide, 2nd Edition by Daniel J. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

ntpdate — stdin  stdout  - file  -- opt  --help  --version

Synopsis

ntpdate timeserver

The ntpdate command sets the current system time by contacting a timeserver machine on the network. You must be root to set the system time.

# /usr/sbin/ntpdate timeserver.someplace.edu
 7 Sep 21:01:25 ntpdate[2399]: step time server 178.99.1.8
   offset 0.51 sec

To keep your system date in sync with a timeserver over long periods, use the daemon ntpd instead; see http://www.ntp.org. If you don’t know a local timeserver, search Google for “public ntp time server”.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required