mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 01:52:49 +00:00
Update cheatsheets
This commit is contained in:
29
linux/ntpq
Normal file
29
linux/ntpq
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user