Meta

To synchronize the time on a Ubuntu computer, with the time from a NTP server, you can simply run the following command: sudo ntpdate 0.pool.ntp.org Replace “0.pool.ntp.org” with your NTP time server of choice. Example output: $ sudo ntpdate 0.pool.ntp.org 1 Jul 00:50:12 ntpdate[31843]: adjust time server 12.34.56.78 offset -0.001309 sec $ Your time will now be synchronized to the time from the NTP server. You can put this in a cron job to periodically update the time, to ensure…

To update the time on a Linux installation, simply run the following command: $ sudo ntpdate <time server address> Replacing <time server address> with a valid NTP time server address. eg: $ sudo ntpdate pool.ntp.org If you only want to query the time, without updating your system, use the following command: $ ntpdate -q pool.ntp.org To update the time, without outputting any log information to standard output (handy for a cron job), use the following command: $ sudo ntpdate -s…