問題文
A new administrator is asked where the configuration for a locally installed service should be kept on a Linux host. The team wants the choice to follow the conventional layout so that other administrators can find it. Which directory is intended for host-local configuration files?
選択肢
- /usr, because it is the largest hierarchy on a typical installation and therefore has room for the many files that a service needs, which makes it the natural place for anything that the administrator installs by hand.
- /etc, which is described as holding configuration files that are local to the machine.
- /tmp, so that a fresh copy is written on each boot and the service starts from a clean state each time it is launched.
- /var, since a service reads its configuration every time it starts and the hierarchy is meant for data that the running system touches repeatedly.