nerdexam
LPI

010-150 · Question #32

After installing a new package, in which directory are you most likely find its configuration file?

The correct answer is C. /etc. The /etc directory is the standard location for system-wide configuration files in Linux, as defined by the Filesystem Hierarchy Standard (FHS).

Finding Your Way on a Linux System

Question

After installing a new package, in which directory are you most likely find its configuration file?

Options

  • A/lib
  • B/conf
  • C/etc
  • D/usr
  • E/opt

How the community answered

(53 responses)
  • A
    4% (2)
  • B
    6% (3)
  • C
    79% (42)
  • D
    2% (1)
  • E
    9% (5)

Why each option

The /etc directory is the standard location for system-wide configuration files in Linux, as defined by the Filesystem Hierarchy Standard (FHS).

A/lib

/lib contains shared library files and kernel modules required for booting and running binaries, not configuration files.

B/conf

/conf is not a standard directory in the Linux Filesystem Hierarchy Standard and does not typically exist on a Linux system.

C/etcCorrect

According to the Filesystem Hierarchy Standard, /etc is designated for host-specific system configuration files. Package managers such as apt and yum install application configuration files here by convention (e.g., /etc/nginx/nginx.conf, /etc/ssh/sshd_config). This makes /etc the first place to look for a newly installed package's configuration.

D/usr

/usr contains user-space programs, documentation, and read-only data, but not host-specific configuration files.

E/opt

/opt is reserved for optional or third-party self-contained software packages; while some packages store data here, standard configuration still goes in /etc.

Concept tested: Linux Filesystem Hierarchy Standard /etc directory

Source: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s02.html

Topics

#/etc#configuration files#filesystem hierarchy#package management

Community Discussion

No community discussion yet for this question.

Full 010-150 Practice