Choose the representative file for ntpd server and pool settings.
Which path is appropriate?
/etc/ntp.conf is the traditional ntpd configuration file for servers, pools, and restrictions.
Detailed explanation
/etc/chrony.confIncorrect. /etc/chrony.conf is for chronyd.
Incorrect. /etc/chrony.conf is for chronyd.
/etc/localtimeIncorrect. /etc/localtime is active timezone data.
Incorrect. /etc/localtime is active timezone data.
/etc/timezoneIncorrect. /etc/timezone stores a timezone identifier on some systems.
Incorrect. /etc/timezone stores a timezone identifier on some systems.
/etc/ntp.confCorrect. /etc/ntp.conf is the representative ntpd configuration.
Correct. /etc/ntp.conf is the representative ntpd configuration.
Try it yourself
An example you can run in a temporary verification environment.
test -f /etc/ntp.conf && printf '%s\n' /etc/ntp.conf || printf '%s\n' 'ntpd config not installed'Expected result
/etc/ntp.conf、またはntpd config not installedKey points
- ntpd uses ntp.conf
- Separate from chrony
- Not a timezone file
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.