nerdexam
Cisco

210-250 · Question #59

Which directory is commonly used on Linux systems to store log files, including syslog and apache access logs?

The correct answer is D. /var/log. On Linux systems, /var/log is the standard directory for storing system and application log files per the Filesystem Hierarchy Standard (FHS).

Cybersecurity Fundamentals

Question

Which directory is commonly used on Linux systems to store log files, including syslog and apache access logs?

Options

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

How the community answered

(34 responses)
  • A
    3% (1)
  • B
    6% (2)
  • D
    91% (31)

Why each option

On Linux systems, /var/log is the standard directory for storing system and application log files per the Filesystem Hierarchy Standard (FHS).

A/etc/log

/etc is reserved for host-specific system configuration files, not log storage.

B/root/log

/root is the home directory of the root superuser account, not a logging directory.

C/lib/log

/lib is used for shared library files essential for system boot and binaries, not for logs.

D/var/logCorrect

The /var/log directory is the designated location for log files under the Linux Filesystem Hierarchy Standard (FHS). System logs such as syslog, auth.log, and application logs like Apache's access.log and error.log are stored here by default. This separation into /var keeps variable-length, frequently changing data isolated from static system files.

Concept tested: Linux Filesystem Hierarchy Standard log directory

Source: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s13.html

Topics

#Linux#log files#/var/log#syslog

Community Discussion

No community discussion yet for this question.

Full 210-250 Practice