How to Synchronize NTP in Linux
NTP (Network Time Protocol) is a protocol designed to synchronize a computer's system clock with a central time server. This server can be on the local network, or one of the various public NTP servers. The Linux operating system uses either the "ntpdate" or "netdate" commands to synchronize the clock with a central server. You should define both a primary server and a secondary server for redundancy.
Instructions
-
-
1
Open a terminal window. The terminal window program is called "Terminal," "Konsole" or "Xterm," depending on the distribution, and can be found under the "Accessories," "System Tools" or "Utilities" sections of the main menu.
-
2
Type the command "su" to switch to the root user.
-
-
3
Type the command "ntpdate primary secondary" or "netdate primary secondary" to synchronize the system clock, depending on which software your Linux distribution uses. Replace "primary" with the primary NTP server. Replace "secondary" with the secondary NTP server.
-
4
Type the command "exit" to close the root session.
-
1