A technician must place a service's log directory under the Filesystem Hierarchy Standard location reserved for variable data such as logs and spool files. Which directory is correct?
- A/lib
- B/dev
- C/var
- D/boot
The FHS reserves /var for variable data including logs under /var/log and spool files, so that is the correct location. /boot holds boot images, /lib holds libraries, and /dev holds device nodes.
Why each option is right or wrong.
- C (correct). /var holds variable data such as logs, spool files, and caches.
- A. /lib holds shared libraries, not logs.
- B. /dev holds device nodes, not log files.
- D. /boot stores the kernel and initramfs, not variable data.
Reference: CompTIA Linux+ XK0-006 objective 1.1.