From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

Set and synchronize system time using time servers

Set and synchronize system time using time servers - Linux Tutorial

From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Set and synchronize system time using time servers

- [Instructor] Hardware clocks and computers are not perfect. They slowly drift away from the real time. Drifting means that after a few days, the real time might be 12 o'clock, five seconds, but our server might show 12 o'clock and six seconds. In this case, it drifted one second ahead. Now servers need an accurate clock, but you might have noticed that, nowadays, we almost never have to manually set our clocks. Our phones, laptops, and servers somehow magically know what time it is. That's because they periodically get the exact time from the internet, and they get it from what are called time servers, more specifically NTP servers. NTP is an abbreviation for Network Time Protocol. Now, most modern operating systems include time synchronization software by default. In Ubuntu, the default one is included in the suite of Systemd utilities, and it's called Systemd-timesyncd. But before learning how to work with that utility, we need to cover another important thing. In the real world…

Contents