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…
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)- A2% (1)
- B9% (4)
- C76% (34)
- D13% (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
Community Discussion
No community discussion yet for this question.