Sync Time and Date in Ubuntu Linux

Quick tip! If you’re using virtual machines to develop and test your web applications, you probably use the “save state/snapshot” feature instead of turning it off and on every time. I noticed after a while that my time was out of sync (a few weeks late) which caused a bunch of problems. Luckily, I found this simple command:

sudo ntpdate

It will sync your time with the Ubuntu Time server. You can even add a cron entry as suggested by this article. To display the current time and date, simply type date. Hope this helps :)

One thought on “Sync Time and Date in Ubuntu Linux

  1. Đồng bộ ngày và giờ nơi Ubuntu | Tôi kiếm tiền !

Comments are closed.