mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-03 14:55:24 +02:00
24 lines
465 B
Markdown
24 lines
465 B
Markdown
# 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}}`
|