LFCS · Question #711
Which of the following commands will print the inode usage on each mounted filesystem?
The correct answer is B. df -i. To display the inode usage (number of used and free inodes) for all mounted filesystems, the df command with the -i option is the correct utility.
Question
Options
- Adu -i
- Bdf -i
- Clsfs -i
- Dprintfs -i
How the community answered
(47 responses)- A2% (1)
- B91% (43)
- C2% (1)
- D4% (2)
Why each option
To display the inode usage (number of used and free inodes) for all mounted filesystems, the `df` command with the `-i` option is the correct utility.
`du -i` is an invalid command; the `du` command is used for estimating file space usage, and `-i` is not a standard option for displaying inode information with `du`.
The `df -i` command is specifically used to report filesystem disk space usage, including the number of used and free inodes. Inodes are data structures that store information about files and directories on Unix-like filesystems, and `-i` displays their utilization alongside block usage.
`lsfs` is not a standard command in most Linux distributions for listing filesystem usage; it might exist in some specific Unix variants but not broadly in Linux for inode usage.
`printfs` is not a standard Linux command for printing filesystem information or inode usage.
Concept tested: Linux filesystem inode usage
Source: https://man7.org/linux/man-pages/man1/df.1.html
Topics
Community Discussion
No community discussion yet for this question.