commands.sh

ntpdate

linux

Synchronize and set the date and time via NTP.

More info →

Examples (4)

Synchronize and set date and time

Query the host without setting the time

Use an unprivileged port in case a firewall is blocking privileged ports

Force time to be stepped using `settimeofday` instead of `slewed`

made by @shridhargupta | data from tldr-pages