Ntpdate
While modern Linux distributions are moving toward newer tools like chrony or systemd-timesyncd , ntpdate remains a critical piece of legacy software that every sysadmin should understand. What is ntpdate ?
In the world of Linux and Unix system administration, maintaining an accurate clock is more than just a matter of convenience; it is a fundamental requirement for security logs, database consistency, and network authentication protocols like Kerberos. For decades, the ntpdate command has been the go-to utility for administrators to manually synchronize their system time with a remote server. ntpdate
This allows you to query a server to see the time offset without actually changing your local system time. It is excellent for debugging. While modern Linux distributions are moving toward newer
ntpdate is a command-line utility used to set the local date and time by polling a Network Time Protocol (NTP) server. Unlike the ntpd daemon, which runs continuously and gradually slews the clock to keep it in sync, ntpdate is a "one-shot" tool. When executed, it determines the time offset from the specified server and immediately adjusts the local system clock. How to Use the ntpdate Command The basic syntax for using the command is straightforward: sudo ntpdate [options] [time_server] For decades, the ntpdate command has been the
Forces the clock to "step" (jump) to the correct time immediately, rather than gradually adjusting it.
