Soru

Zorluk: ZormacOS and Linux Operating System Features and Tools

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.)

  1. crontab -e to open the job scheduler configuration and schedule the script execution timeCevap
  2. df -h to display total, used, and available space on mounted file systems in human-readable unitsCevap
  3. C
    du -sk to list available space across all mounted storage drives
  4. D
    chmod +x /etc/cron.daily to schedule the execution frequency

Cevap

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.

Adım Adım Çözüm

1
Identify the proper tool for scheduling recurring tasks in Linux
Using crontab -e allows editing the cron schedule file to add the entry '0 2 * * * /path/to/script.sh'.
Cron is the native Linux daemon for running scheduled background tasks at designated times.
2
Identify the proper utility for displaying mounted file system storage space
Including the df -h command inside the maintenance script queries file system usage and formats sizes in megabytes or gigabytes.
The df utility specifically summarizes free and used disk space per mounted partition.

Anahtar Kavram

Linux task automation with cron and file system space monitoring with df
Tahmini Süre:2m 0s
Bu soruyu puanla