Challenge - 5 Problems
Disk Management Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Disk usage monitoring command output
You run the command
df -h / on a Linux server to check disk usage of the root partition. What is the expected output format?Linux CLI
df -h /
Attempts:
2 left
💡 Hint
Disk usage percentages cannot exceed 100%.
✗ Incorrect
The
df -h command shows disk usage with human-readable sizes. The Use% column shows the percentage of used space, which cannot be more than 100%.🧠 Conceptual
intermediate1:30remaining
Why monitoring disk space prevents outages
Why does monitoring disk space usage help prevent system outages?
Attempts:
2 left
💡 Hint
Think about what happens when a disk is completely full.
✗ Incorrect
Monitoring disk space helps admins act before the disk fills up, preventing crashes or service failures caused by no available space.
🔧 Debug
advanced2:30remaining
Identify the error in disk space alert script
This script is intended to alert when disk usage exceeds 90%. What error causes it to never alert?
usage=$(df / | tail -1 | awk '{print $5}' | sed 's/%//')
if [ $usage -gt 90 ]
then
echo "Disk usage critical: $usage%"
fiLinux CLI
usage=$(df / | tail -1 | awk '{print $5}' | sed 's/%//') if [ $usage -gt 90 ] then echo "Disk usage critical: $usage%" fi
Attempts:
2 left
💡 Hint
Check how shell compares numbers inside single brackets.
✗ Incorrect
The script correctly extracts the numeric disk usage and compares it with 90 using -gt inside single brackets, which works in POSIX shell.
🚀 Application
advanced3:00remaining
Automate disk cleanup to prevent outages
Which script snippet safely deletes only log files older than 30 days in /var/log to free disk space?
Attempts:
2 left
💡 Hint
Use find with -mtime to select files older than 30 days.
✗ Incorrect
Option B uses find to locate files ending with .log older than 30 days and deletes them safely. Other options either misuse rm or delete all logs regardless of age.
🧠 Conceptual
expert3:00remaining
How disk management strategies prevent outages in production
Which of the following best explains how disk management strategies prevent outages in production systems?
Attempts:
2 left
💡 Hint
Think about practical, reliable ways to keep systems running smoothly.
✗ Incorrect
Effective disk management includes monitoring, cleanup automation, and alerting to prevent full disks that cause outages. Other options are impractical or impossible.