Bird
0
0

What is the primary purpose of files located in the /var/log/ directory on a Linux system?

easy📝 Conceptual Q11 of 15
Linux CLI - System Administration
What is the primary purpose of files located in the /var/log/ directory on a Linux system?
ATo hold user personal documents and files
BTo contain system configuration files
CTo save temporary files created during program execution
DTo store system and application logs recording events and errors
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of /var/log/

    The /var/log/ directory is designed to keep logs about system and application activities.
  2. Step 2: Differentiate from other directories

    Other directories like /home store user files, /etc holds configs, and /tmp stores temporary files.
  3. Final Answer:

    To store system and application logs recording events and errors -> Option D
  4. Quick Check:

    /var/log/ = system logs [OK]
Quick Trick: Remember: /var/log holds logs, not configs or user files [OK]
Common Mistakes:
  • Confusing /var/log with /etc for configs
  • Thinking /var/log stores user documents
  • Mixing up temporary files with logs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes