Forrest logo
tool overview
On this page you find all important commands for the CLI tool ntpdate. If the command you are looking for is missing please ask our AI.

ntpdate

Ntpdate is a command-line tool used to synchronize the computer's system clock with a network time server using the Network Time Protocol (NTP). It is typically available on Unix-like operating systems, including Linux and macOS. When executed, ntpdate queries a remote NTP server and adjusts the local clock based on the server's response. It is commonly used in scenarios where the computer's clock is significantly off from the correct time. The tool provides a simple and convenient way to manually synchronize the time, avoiding the need for continuous time synchronization as provided by NTP daemons. However, ntpdate is considered deprecated and has been replaced by newer tools like chrony or systemd-timesyncd, which offer additional features and improved synchronization methods. It is advisable to use alternative time synchronization tools rather than ntpdate, unless required for specific legacy systems.

List of commands for ntpdate:

  • ntpdate:tldr:11435 ntpdate: Synchronize and set date and time.
    $ sudo ntpdate ${host}
    try on your machine
    explain this command
  • ntpdate:tldr:22e07 ntpdate: Use an unprivileged port in case a firewall is blocking privileged ports.
    $ sudo ntpdate -u ${host}
    try on your machine
    explain this command
  • ntpdate:tldr:6adf7 ntpdate: Query the host without setting the time.
    $ ntpdate -q ${host}
    try on your machine
    explain this command
  • ntpdate:tldr:6f2d6 ntpdate: Force time to be stepped using `settimeofday` instead of `slewed`.
    $ sudo ntpdate -b ${host}
    try on your machine
    explain this command
tool overview