Choose the representative file for chronyd synchronization sources and local-clock policy.
Which path is appropriate?
/etc/chrony.conf is the representative chronyd configuration file.
Detailed explanation
/etc/chrony.confCorrect. /etc/chrony.conf configures chronyd.
Correct. /etc/chrony.conf configures chronyd.
/etc/ntp.confIncorrect. /etc/ntp.conf is for traditional ntpd.
Incorrect. /etc/ntp.conf is for traditional ntpd.
/etc/adjtime.confIncorrect. This is not the standard chronyd configuration path.
Incorrect. This is not the standard chronyd configuration path.
/var/log/chronyIncorrect. A log path is not the main configuration file.
Incorrect. A log path is not the main configuration file.
Try it yourself
An example you can run in a temporary verification environment.
test -f /etc/chrony.conf && printf '%s\n' /etc/chrony.conf || printf '%s\n' 'chrony config not installed'Expected result
/etc/chrony.conf、またはchrony config not installedKey points
- chronyd uses chrony.conf
- Different from ntpd
- Check distribution
Notes
- Environment: Linux / file存在確認のみ
- 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.