Check inode usage with df -i
Diagnose 'No space left on device' errors when gigabytes of free space remain.
01Command
$ df -i02What it does
Every file, symlink and directory consumes an inode, and each filesystem has a fixed inode table created at format time. When those run out, writes fail with 'No space left on device' even though df -h shows gigabytes free. df -i prints used/free inodes per mount, and the usual suspects are mail queues, build caches, session directories and backup trees full of small files.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- df(1) — Arch Manual PagesEvidence: Same coreutils page: --inodes reports inode usage per filesystem instead of block usage.
- df(1) — Debian bookwormEvidence: Documents -i, --inodes: list inode information instead of block usage, with IUsed/IFree/IUse% columns.
Last verified: 2026-09-19 · Category: Files & Folders
06Related solutions
Launch an interactive process viewer with color meters for CPU cores, memory, and swap, plus search, sort, and kill controls.
Show total, used, and available space plus usage percentage for every mounted filesystem in human-readable units.
The classic forgotten-syntax command: `traceroute` shows every router between you and a destination plus the round-trip time of probes to each hop.