inode

The record a filesystem keeps for each file, holding its owner, mode, size, timestamps, link count and the location of its data blocks, but not its name.

In more detail

Names live in directories, which map each name to an inode number; the inode is the file object itself. Several names can point at the same inode, which is what a hard link is. A filesystem creates a fixed or limited number of inodes, so it can run out of them even while free space remains.

Example

ls -i shows inode numbers, and stat shows an inode's link count.

Related terms

Taught in

References

Certification courses