1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 08:22:09 +02:00
tldr/pages/linux/ntpq.md
2021-04-25 12:47:40 -04:00

24 lines
457 B
Markdown

# ntpq
> Query the Network Time Protocol (NTP) daemon.
> More information: <https://www.eecis.udel.edu/~mills/ntp/html/ntpq.html>.
- Start `ntpq` in interactive mode:
`ntpq --interactive`
- Print a list of NTP peers:
`ntpq --peers`
- Print a list of NTP peers without resolving hostnames from IP addresses:
`ntpq --numeric --peers`
- Use `ntpq` in debugging mode:
`ntpq --debug-level`
- Print NTP system variables values:
`ntpq --command={{rv}}`