Linux has several tools available for time synchronization, including ntpdate and chrony.
is a command-line tool that can be used to set the system clock by querying an NTP server.
It can be useful for setting the clock quickly but may not be as precise as other methods.
To use ntpdate, you can run the following command as the root user: "ntpdate <ntp_server>"
It's worth noting that
is considered deprecated and is not recommended for use on systems that run continuously.
chrony is another command-line tool that can be used to synchronize the system clock with an NTP server.
Unlike ntpdate, chrony adjusts the system clock gradually over time, which can lead to more accurate synchronization.
Chrony can be installed by typing the below command: "apt-get install chrony"
Managing Linux Services like a Pro: Using the systemctl Command