Linux - Synchronize the system clock with a time server

December 2016





The ntpdate command can be used to synchronize the system time of Linux with a time server, for example:
ntpdate time.server.com 


To synchronize the system clock (hardware) as well, simply run this command after the previous one:
hwclock --systohc 

Related :

This document entitled « Linux - Synchronize the system clock with a time server » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.