010-160 · Question #74
Which of the following directories must be mounted with read and write access if it resides on its own dedicated file system?
The correct answer is D. /var. This question tests knowledge of the Linux Filesystem Hierarchy Standard and which directories contain data that must be writable at runtime.
Question
Options
- A/opt
- B/lib
- C/etc
- D/var
- E/usr
How the community answered
(51 responses)- A2% (1)
- B10% (5)
- C4% (2)
- D82% (42)
- E2% (1)
Why each option
This question tests knowledge of the Linux Filesystem Hierarchy Standard and which directories contain data that must be writable at runtime.
/opt holds optional third-party application software that can remain static and be mounted read-only without impacting normal system operation.
/lib contains shared libraries and kernel modules that do not need to be written to during normal runtime and can be mounted read-only.
/etc holds system configuration files that, while occasionally modified by administrators, can be mounted read-only in certain hardened or container environments without breaking runtime operation.
/var is defined by the FHS as the directory for variable data - including logs (/var/log), spool files (/var/spool), runtime data (/var/run), and package databases - all of which are written to continuously during normal system operation. If /var resides on its own filesystem, it must be mounted read-write or the system will fail to function properly.
/usr contains user-land binaries, libraries, and documentation that are static after installation and can safely be mounted read-only.
Concept tested: Linux FHS /var directory read-write requirement
Source: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05.html
Topics
Community Discussion
No community discussion yet for this question.