« Back to File systems: Frequently Asked Questions

How to see inode usage

How to see inode usage?

Use the df command with the option -i to see how many inodes are used or available.

df -i

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.

Other questions related to Linux file systems

    Related articles

    Like to learn more? Here is a list of articles within the same category or having similar tags.

    Feedback

    Small picture of Michael Boelen

    This article has been written by our Linux security expert Michael Boelen. With focus on creating high-quality articles and relevant examples, he wants to improve the field of Linux security. No more web full of copy-pasted blog posts.

    Discovered outdated information or have a question? Share your thoughts. Thanks for your contribution!

    Mastodon icon