CompTIA Linux+ (XK0-004) — Question 123

A user is unable to write data to an NFS datastore at /mnt/storage. A df command indicates 50% free inodes.
Which of the following commands should the user attempt NEXT to diagnose the situation?

Answer options

Correct answer: A

Explanation

The correct command to run is A, as it provides a human-readable summary of disk usage, which helps in assessing the space available on the NFS datastore. Option B is useful for checking the size of directories but does not specifically address the issue with inodes. Option C is unrelated, as fdisk is used for partitioning disks rather than checking NFS datastore usage. Option D checks inode usage but does not provide information on overall disk space, which is essential for diagnosing the writing issue.