System Management
The root filesystem on a server is 95% full. /home and /var are separate filesystems on their own partitions. The administrator wants the size of each top-level directory, counting only data stored on the root filesystem. Which command does this?
Show the answer
Correct answerA. du -xh --max-depth=1 /
du -x stays on one filesystem, and --max-depth=1 reports each top-level directory, so /home and /var data is not counted. Without -x, du descends into the other mounted filesystems and inflates the totals, even with --apparent-size.