A Linux administrator is setting up an automated nightly maintenance script on a production server. The script must execute automatically every day at 2:00 AM, and its output must record the total available and used disk space across all mounted file systems in a human-readable format. Which of the following tools or utilities should the administrator configure or include in the script to fulfill these requirements? (Select TWO.)
- crontab -e to open the job scheduler configuration and schedule the script execution timeAnswer
- df -h to display total, used, and available space on mounted file systems in human-readable unitsAnswer
- Cdu -sk to list available space across all mounted storage drives
- Dchmod +x /etc/cron.daily to schedule the execution frequency
Answer
The administrator must use crontab -e to schedule the automated daily execution at 2:00 AM and df -h to record file system disk availability in human-readable format.
The cron daemon handles task scheduling in Linux, and running crontab -e allows the user to define execution times (such as 2:00 AM). The df command with the -h flag reports file system disk space utilization in human-readable units (such as MB and GB), satisfying both requirements.
Step-by-Step Solution
Key Concept
Linux task automation with cron and file system space monitoring with df
Estimated Time:2m 0s