What does the df -h command do in UNIX?

What does the df -h command do in UNIX?

a) Displays disk space usage in human-readable format
b) Displays free memory
c) Displays hidden files
d) Displays system uptime

Answer:

a) Displays disk space usage in human-readable format

Explanation:

The df -h command in UNIX displays disk space usage in a human-readable format, such as KB, MB, or GB. It provides a clear overview of how much disk space is used and how much is available for each mounted file system.

This command is particularly useful when managing disk storage on a system. It allows administrators to quickly identify file systems that are running low on space, enabling proactive disk management before critical issues arise.

Mastering the df -h command is crucial for efficient disk management in UNIX environments. It ensures that you can monitor disk usage and maintain system health without worrying about disk capacity limits.

Reference:

Top 50 Unix MCQ Questions & Answers

Scroll to Top