1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 22:15:23 +02:00
tldr/pages/linux/ntpq.md
Managor 1f63ed5e22
linux*: refresh old pages part 1 (#16251)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-04-25 04:34:04 +03:00

465 B

ntpq

Query the Network Time Protocol (NTP) daemon. More information: https://manned.org/man/ntpq.1.

  • Start ntpq in interactive mode:

ntpq

  • Print a list of NTP peers:

ntpq {{[-p|--peers]}}

  • Print a list of NTP peers without resolving hostnames from IP addresses:

ntpq {{[-n|--numeric]}} {{[-p|--peers]}}

  • Use ntpq in debugging mode:

ntpq {{[-d|--debug-level]}}

  • Print NTP system variables values:

ntpq {{[-c|--command]}} {{rv}}