HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ntpq — Query the Network Time Protocol (NTP) daemon. More information: <https://manned.org/ntpq>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandnetworkcliquerytimentpqprotocol
linux

Problem

How to use the ntpq command: Query the Network Time Protocol (NTP) daemon. More information: <https://manned.org/ntpq>.

Solution

ntpq — Query the Network Time Protocol (NTP) daemon. More information: <https://manned.org/ntpq>.

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}}

Code Snippets

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}}

Context

tldr-pages: linux/ntpq

Revisions (0)

No revisions yet.