Red Hat Certified System Administrator RHCSA · Free Practice Question Medium
Question 20
In RHEL 9, what command would you use to determine the current utilization of disk space?
Show model answer
To check the current disk usage in RHEL 9, use the df command. This command displays the amount of disk space used and available on all mounted filesystems. To see a more human-readable output, include the -h option (e.g., df -h), which shows the space in units like MB and GB. For a detailed analysis of disk usage by directories and files, use the du command. For example, du -sh /path/to/directory provides the total size of a specific directory in a human-readable format.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
