>_ IzzyLab

Topic breakdown

A hard link is an additional name pointing to the same inode as the original file; the data is shared, and the file is physically deleted only when the last name disappears. The kernel tracks the number of links (link count): stat -c %h and the second field of ls -l show it. For a regular file it is 1, for a directory at least 2.

What's checked

  1. number matches the link count
  2. correct value

What it looks like