Display each NTP source used by chronyd with mode, state, stratum, reach, and offset.
Which command is appropriate?
chronyc sources -v lists chronyd sources with verbose headings and measurements.
Detailed explanation
chronyc trackingIncorrect. tracking summarizes the selected source and system clock.
Incorrect. tracking summarizes the selected source and system clock.
ntpq -pIncorrect. ntpq is for ntpd.
Incorrect. ntpq is for ntpd.
timedatectl statusIncorrect. timedatectl reports overall synchronization, not the source list.
Incorrect. timedatectl reports overall synchronization, not the source list.
chronyc sources -vCorrect. chronyc sources -v lists chronyd sources and measurements.
Correct. chronyc sources -v lists chronyd sources and measurements.
Try it yourself
An example you can run in a temporary verification environment.
chronyc help 2>&1 | grep -E '^sources| sources' | head -n 1Expected result
sources commandのhelp行(chrony導入環境)Key points
- chronyc is for chronyd
- sources lists peers
- -v adds headings
Notes
- Environment: chronyc 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.