System Management

On a server, df -i shows IUse% at 100% for the filesystem mounted at /var, while df -h shows plenty of free blocks. Which command best identifies which top-level directory under /var holds the most inodes?

Show the answer

Correct answerC. du --inodes --max-depth=1 /var | sort -n

du --inodes (GNU coreutils) counts inodes instead of blocks, so sorting its per-directory output shows which directory holds the most files. du -h --max-depth=1 reports block usage, so millions of tiny files can look small. tune2fs -l shows only filesystem-wide inode totals, not a per-directory breakdown.