What does the df command display in UNIX?

What does the df command display in UNIX?

a) Disk space usage
b) File permissions
c) Process information
d) Network usage

Answer:

a) Disk space usage

Explanation:

The df command in UNIX is used to display information about the disk space usage of file systems. It shows the total size, used space, available space, and the percentage of disk space used for each mounted file system on the system.

For example, running df -h provides disk usage information in a human-readable format, showing values in MB or GB. This makes it easier to monitor the disk space usage and identify potential storage issues.

Using df regularly is crucial for disk management, ensuring that you can detect when a file system is running low on space and take necessary actions, such as cleaning up unnecessary files or adding more storage.

Reference:

Top 50 Unix MCQ Questions & Answers

Scroll to Top