When a file or a directory is created in a Linux file system, a name and a uniq inode number is assigned to it.
An inode is a data structure that contains information about a disk block location of a file or a directory and may include metadata (times of last change, access, modification), as well as information about the owner and permissions.
The number of inodes is defined during the file system creation and can’t be increased without reformatting the partition.
In this note i will show how to check the inode usage in Linux, how to list top directories sorted by inode usage and how to show the inode number of a file or a directory. (more…)