Filesystem hierarchy (FHS): Which directory is designated for user system resources, including subdirectories for user and administrative executables such as /usr/bin and /usr/sbin?
-
A/usr
-
B/tmp
-
C/opt
-
D/mnt
-
ENone of the above
Answer
Correct Answer: /usr
Explanation
Introduction / Context:The Linux Filesystem Hierarchy Standard (FHS) defines a common directory structure across distributions. Knowing where executables and libraries reside helps administrators manage software, PATH settings, and storage.
Given Data / Assumptions:
- We are identifying the standard location of user and administrative executables.
- We focus on system-provided software, not temporary files or mount points.
- FHS conventions are followed.
Concept / Approach:
The /usr hierarchy holds user system resources: binaries in /usr/bin, system admin binaries in /usr/sbin, libraries in /usr/lib, and shared data in /usr/share. Locally installed admin/user software typically goes under /usr/local. /opt is for add-on packages; /tmp is for temporary files; /mnt is a mount point.
Step-by-Step Solution:
Identify directory containing /usr/bin and /usr/sbin: /usr.Recognize that /usr/local supports locally built software without overwriting vendor packages.Exclude /opt (add-ons), /tmp (temporary), and /mnt (mount point).Thus, /usr is the correct answer.Verification / Alternative check:
List directories with ls /usr to confirm existence of bin, sbin, lib, share, and local. Consult man hier or FHS documentation for definitions.
Why Other Options Are Wrong:
- /tmp: Temporary files; not for installed executables.
- /opt: Optional add-on packages; not the primary hierarchy for user/admin executables.
- /mnt: Generic mount point; not for program storage.
- None of the above: Incorrect because /usr is correct.
Common Pitfalls:
Confusing /usr with /usr/local or /opt. While programs can exist in all three, /usr is the principal tree for distribution-provided binaries and libraries, whereas /usr/local is for locally installed software and /opt is for third-party add-ons.
Final Answer:
/usr