LX0-103 · Question #111
Which of the following commands will print the inode usage on each mounted filesystem?
The correct answer is B. df -i. The df command with the -i flag reports inode usage (used, free, and percentage) for each mounted filesystem.
Question
Which of the following commands will print the inode usage on each mounted filesystem?
Options
- Adu -i
- Bdf -i
- Clsfs -i
- Dprintfs -i
How the community answered
(49 responses)- A4% (2)
- B92% (45)
- C2% (1)
- D2% (1)
Why each option
The df command with the -i flag reports inode usage (used, free, and percentage) for each mounted filesystem.
The du command reports disk space used by files and directories recursively; it does not have an -i option for inode reporting.
The df -i command displays inode information rather than block usage for every currently mounted filesystem, showing total inodes, used inodes, free inodes, and the percentage used. This is essential for diagnosing situations where a filesystem has free disk space but cannot create new files because all inodes are exhausted.
lsfs is not a standard Linux command - it exists on IBM AIX systems but is not part of standard Linux distributions.
printfs is not a valid Linux command - no such filesystem reporting utility exists.
Concept tested: Reporting inode usage per filesystem with df -i
Source: https://man7.org/linux/man-pages/man1/df.1.html
Topics
Community Discussion
No community discussion yet for this question.