Setting and syncing time on Ubuntu with ntp / ntpdate Print

  • 1

These commands will help you change your server's local timezone configuration to London, and then install ntp and ntpdate to sync your time correctly and periodically update it.

cp /usr/share/zoneinfo/Europe/London /etc/localtime
apt-get install ntp ntpdate -y
ntpdate -u pool.ntp.org
service ntp start
update-rc.d ntp defaults


Was this answer helpful?

« Back