IT lexicon › Infra & Ops › Hard link

Hard link

Infra & Ops På svenska → Updated: 2026-11-16

Two directory entries pointing to the same inode—that is, the same file data.

A hard link creates two names for the same inode. Both names have equal ownership—the filesystem maintains a reference count and only deletes the data when all links are removed. Hard links work only within a single filesystem and only for regular files, not directories (to prevent loops).

This is completely different from symbolic links. A hard link is an actual directory entry pointing to the same data; a symlink is a small file containing a path. If the original is deleted, a symlink breaks, but a hard link continues to work.

← Back to the lexicon