LFCA · Question #66
An IT associate would find the log files for syslog in which of the following directories?
The correct answer is A. /var/log. In Linux systems, syslog and most other system-wide log files are conventionally stored within the /var/log directory.
Question
An IT associate would find the log files for syslog in which of the following directories?
Options
- A/var/log
- B/usr/local/logs
- C/home/logs
- D/etc/logs
How the community answered
(29 responses)- A86% (25)
- B3% (1)
- C7% (2)
- D3% (1)
Why each option
In Linux systems, syslog and most other system-wide log files are conventionally stored within the `/var/log` directory.
The `/var/log` directory is the standard location specified by the Filesystem Hierarchy Standard (FHS) for storing various system log files, including those generated by `syslog` and other system services and applications.
`/usr/local/logs` is not a standard directory for system logs; `/usr/local` is typically for locally compiled software.
`/home/logs` is incorrect because the `/home` directory is designated for user-specific data, not for system-wide log files.
`/etc/logs` is incorrect as the `/etc` directory primarily contains configuration files for the system and installed applications, not log files.
Concept tested: Linux log file locations
Source: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s08.html
Topics
Community Discussion
No community discussion yet for this question.