List ntpd remote peers, stratum, reach, delay, offset, and jitter.
Which command is appropriate?
ntpq -p queries ntpd and displays its peer table and synchronization columns.
Detailed explanation
ntpdate -qIncorrect. ntpdate -q performs a one-off query rather than listing daemon peers.
Incorrect. ntpdate -q performs a one-off query rather than listing daemon peers.
chronyc trackingIncorrect. chronyc is for chronyd.
Incorrect. chronyc is for chronyd.
ntpq -pCorrect. ntpq -p displays the ntpd peer table.
Correct. ntpq -p displays the ntpd peer table.
date -uIncorrect. date -u only formats the current clock.
Incorrect. date -u only formats the current clock.
Try it yourself
An example you can run in a temporary verification environment.
ntpq --help 2>&1 | head -n 3Expected result
ntpqのhelpまたはusage(導入環境)Key points
- ntpq is for ntpd
- -p lists peers
- Check reach and offset
Notes
- Environment: ntpq helpの読取のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.