How to see inode usage
Use the df command with the --inodes to see inode usage on a file system.
Show inode usage
The output of df --inodes
will include the total number of inodes (Inodes), how many there are in use (IUsed), and remaining ones (IFree). For easier understanding its usage, the inode usage will also be listed in a percentage (IUse).
# df --inodes
Filesystem Inodes IUsed IFree IUse% Mounted on
tmpfs 500759 765 499994 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 933888 144120 789768 16% /
tmpfs 500759 4 500755 1% /dev/shm
tmpfs 500759 3 500756 1% /run/lock
/dev/sda2 114688 320 114368 1% /boot
tmpfs 100151 25 100126 1% /run/user/1000
192.168.1.1:/projects 15283468 31186 15252282 1% /mnt/projects
To shorten this command, combine the options and use df -i
.