LPI Exam Questions

The ________ file is the configuration file for ntpd

The ________ file is the configuration file for ntpd

Answer: /etc/ntp.conf

Explanation:
Ordinarily, ntpd reads the ntp.conf configuration file at startup time in order to determine the synchronization sources and operating modes. It is also possible to specify a working, although limited, configuration entirely on the command line, obviating the need for a configuration file. This may be particularly useful when the local host is to be configured as a broadcast/multicast client, with all peers being determined by listening to broadcasts at run time.
Usually, the configuration file is installed in the /etc directory, but could be installed elsewhere (see the -c conffile command line option). The file format is similar to other Unix configuration files – comments begin with a # character and extend to the end of the line; blank lines are ignored.