CompTIA Linux+ (XK0-005) — Question 160
In which of the following filesystems are system logs commonly stored?
Answer options
- A. /var
- B. /tmp
- C. /etc
- D. /opt
Correct answer: A
Explanation
The correct answer is A, as the /var directory is specifically designated for variable data files, including system logs. The other options, such as /tmp, are used for temporary files, /etc is reserved for configuration files, and /opt is for optional software packages, making them unsuitable for log storage.