1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-03 12:35:22 +02:00
tldr/pages/linux/ntpq.md

25 lines
465 B
Markdown
Raw Normal View History

2021-04-25 18:47:40 +02:00
# ntpq
> Query the Network Time Protocol (NTP) daemon.
> More information: <https://manned.org/man/ntpq.1>.
2021-04-25 18:47:40 +02:00
- Start `ntpq` in interactive mode:
`ntpq`
2021-04-25 18:47:40 +02:00
- Print a list of NTP peers:
`ntpq {{[-p|--peers]}}`
2021-04-25 18:47:40 +02:00
- Print a list of NTP peers without resolving hostnames from IP addresses:
`ntpq {{[-n|--numeric]}} {{[-p|--peers]}}`
2021-04-25 18:47:40 +02:00
- Use `ntpq` in debugging mode:
`ntpq {{[-d|--debug-level]}}`
2021-04-25 18:47:40 +02:00
- Print NTP system variables values:
`ntpq {{[-c|--command]}} {{rv}}`