101-500 practice question 14 of 30

In compliance with the FHS, in which of the following directories are documentation files found?

Full set: 246 questions
Answer options
A: /usr/share/documentation
B: /usr/local/share/documentation
C: /var/share/doc
D: /usr/share/doc Correct answer
E: /etc/share/doc
Correct Answer:
D. /usr/share/doc
Explanation

The Filesystem Hierarchy Standard (FHS) specifies standard locations for files and directories on Linux systems. According to the FHS, /usr/share/doc is the designated directory for storing documentation files for installed software packages. This directory contains architecture-independent files, such as READMEs, licenses, and examples, organized by package name. The other paths listed are non-standard or serve different purposes. For instance, /var is for variable data, and /etc is for configuration files.

Why Incorrect

A. /usr/share/documentation is incorrect; the standard directory name specified by the FHS is doc, not documentation.
B. /usr/local/share/documentation is incorrect for the same reason as A, and /usr/local is for locally installed software, not system packages.
C. /var/share/doc is incorrect because /var is for variable data like logs and spools, not static documentation files.
E. /etc/share/doc is incorrect as /etc is reserved for host-specific system configuration files, not package documentation.

References

- Filesystem Hierarchy Standard (FHS) Version 3.0, The Linux Foundation, Section 4.9.1, /usr/share/doc : "Documentation for application packages may be found in this directory."

- Red Hat Enterprise Linux 8 Documentation, "Chapter 2. The Filesystem Hierarchy Standard", Section 2.3.6. /usr. This section describes the contents of /usr, including /usr/share/doc for documentation.

Scroll to Top