CompTIA Linux+ (XK0-004) — Question 161
A Linux systems administrator is troubleshooting an issue with the /home directory running out of space. The administrator needs to determine which /home directories are using the most space. Which of the following commands should be used?
Answer options
- A. du
- B. lvs
- C. df
- D. fsck
Correct answer: A
Explanation
The correct command is 'du', which stands for disk usage and is specifically designed to estimate file space usage. The command 'lvs' is used for managing logical volumes, 'df' provides information about disk space usage on file systems, and 'fsck' is a file system check utility, none of which are suitable for determining the space used by directories.