Bird
0
0

To prevent outages, you want to combine disk usage checks with log rotation. Which command sequence is best?

hard📝 Application Q9 of 15
Linux CLI - Disk and Storage
To prevent outages, you want to combine disk usage checks with log rotation. Which command sequence is best?
AIgnore disk usage and increase CPU speed
BRun only logrotate without checking disk space
CUse df -h to check disk, then run logrotate to manage logs
DDelete all logs manually daily
Step-by-Step Solution
Solution:
  1. Step 1: Understand disk usage and log rotation roles

    Disk checks prevent full disks; logrotate prevents logs from filling disk.
  2. Step 2: Combine commands effectively

    Running df -h then logrotate ensures disk space is monitored and logs managed.
  3. Final Answer:

    Use df -h to check disk, then run logrotate to manage logs -> Option C
  4. Quick Check:

    Disk check + logrotate = Outage prevention [OK]
Quick Trick: Combine disk checks with log management for best results [OK]
Common Mistakes:
  • Ignoring disk checks when rotating logs
  • Deleting logs without rotation
  • Confusing CPU speed with disk management

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes