A Linux application server begins reporting "No space left on device" when it tries to write new log files under /var/log. The command df -h /var shows that only 37 % of the /var filesystem's storage capacity is used. Suspecting inode exhaustion, you want to verify whether the filesystem has run out of inodes before taking corrective action. Which single command will provide an immediate, human-readable display of the total, used, and free inode counts for the /var mount point?
The df utility can display inode statistics with the -i (or --inodes) option. Running df -i /var lists the total number of inodes on the /var filesystem along with how many are used and how many are still free, making it the quickest way to confirm or rule out inode exhaustion.
du -sh /var reports disk usage in bytes, not inode counts.
lsblk -f shows block-device and filesystem information (labels, UUIDs, types) but does not include inode utilization statistics.
tune2fs -l /dev/sda3 | grep -i 'Inode count' can display the static inode limit stored in an ext* superblock, yet it does not tell you how many of those inodes are currently in use; therefore it cannot directly confirm exhaustion without further calculations.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why are inodes important in a filesystem?
Open an interactive chat with Bash
How does `df -i` differ from the regular `df` command?
Open an interactive chat with Bash
What types of scenarios lead to inode exhaustion?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access