CompTIA Linux+ (XK0-006)System ManagementEasy

A junior administrator is troubleshooting a Linux server and needs to know where system-wide log files such as syslog and boot messages are stored according to the Filesystem Hierarchy Standard (FHS). Which directory should they check?

  1. A/proc/log
  2. B/var/log
  3. C/usr/log
  4. D/etc/log
Show answer & explanation

Correct answer: B. /var/log

The FHS defines /var/log as the standard location for variable log data, including system, kernel, and application logs. The other paths are not valid FHS log locations.

Why the other options are wrong

  • A. /proc is a virtual filesystem for kernel/process info, not log storage.
  • C. /usr holds shareable, read-only program data, not logs.
  • D. /etc holds configuration files, not logs.

FHS /var Directory

/var holds variable data that changes during system operation, such as logs, spool files, and caches.

  • /var/log stores system and application logs
  • /var/spool holds print and mail queues
  • /var/cache stores application cache data

Memory trick: VAR = 'Various Altering Records' — data that keeps changing lives here

More System Management questions