mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-03 14:43:35 +00:00
30 lines
553 B
Plaintext
30 lines
553 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# ntpq
|
|
|
|
> Query the Network Time Protocol (NTP) daemon.
|
|
> More information: <https://manned.org/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}}`
|