nerdexam
GIAC

GSEC · Question #372

Which of the following directories contains the log files in Linux?

The correct answer is C. /var/log. /var/log is the standard directory in Linux where the system and application log files are stored, as defined by the Filesystem Hierarchy Standard (FHS). It contains logs such as syslog, auth.log, kern.log, dmesg, and logs from services like Apache and MySQL. The other options…

Linux and Cryptography

Question

Which of the following directories contains the log files in Linux?

Options

  • A/log
  • B/root
  • C/var/log
  • D/etc

How the community answered

(45 responses)
  • A
    2% (1)
  • B
    9% (4)
  • C
    76% (34)
  • D
    13% (6)

Explanation

/var/log is the standard directory in Linux where the system and application log files are stored, as defined by the Filesystem Hierarchy Standard (FHS). It contains logs such as syslog, auth.log, kern.log, dmesg, and logs from services like Apache and MySQL. The other options are incorrect: /log does not exist as a standard Linux directory. /root is the home directory of the root superuser, not a log storage location. /etc is the directory for system-wide configuration files (such as passwd, hosts, and fstab), not logs.

Topics

#Linux#/var/log#log files#system directories

Community Discussion

No community discussion yet for this question.

Full GSEC Practice