System Administration Guide, Volume 2

How to Synchronize Date and Time From Another System

  1. Become superuser.

  2. To reset the date and time to synchronize with another system, use the rdate command.


    # rdate another-system
    

    another-system

    Name of another system. 

  3. Verify that you have reset your system's date correctly by checking your system's date and time using the date command.

    The output should show a date and time that matches that of the other system.

Example--Synchronizing Date and Time From Another System

The following example shows how to use rdate to synchronize the date and time of one system with another. In this example, the system earth, running several hours behind, is reset to match the date and time of the server starbug.


earth# date
Thu Sep 16 11:08:27 MDT 1999
earth# rdate starbug
Thu Sep 16 14:06:37 1999
earth# date
Thu Sep 16 14:06:40 MDT 1999