Bird
0
0

Why are some log files in /var/log/ rotated and compressed automatically?

hard📝 Conceptual Q10 of 15
Linux CLI - System Administration
Why are some log files in /var/log/ rotated and compressed automatically?
ATo save disk space and keep logs manageable
BTo make logs unreadable for security
CTo delete old logs permanently
DTo speed up system boot time
Step-by-Step Solution
Solution:
  1. Step 1: Understand log rotation purpose

    Log rotation compresses and archives old logs to save disk space and prevent files from growing too large.
  2. Step 2: Eliminate incorrect reasons

    Rotation does not aim to make logs unreadable, delete logs immediately, or affect boot speed.
  3. Final Answer:

    To save disk space and keep logs manageable -> Option A
  4. Quick Check:

    Log rotation = space saving and management [OK]
Quick Trick: Log rotation compresses old logs to save space [OK]
Common Mistakes:
  • Thinking rotation deletes logs immediately
  • Assuming rotation hides logs for security
  • Believing rotation affects boot speed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes