link count

The number stored in an inode that says how many directory entries point to it.

In more detail

Each hard link adds one and each removal subtracts one. The filesystem frees the inode and its data blocks only when the link count reaches zero and no process still has the file open. ls -l shows it in the second column.

Related terms

Taught in

References