Storage glossary · JSON corpus · llms.txt · hesela.com

hard-link · shipping · also hardlink

Hard link

A hard link is a directory entry naming an existing file's inode, so multiple hard links refer to the same file rather than to separate copies.

On Linux, link() creates another name without overwriting an existing destination and cannot cross mounted-filesystem boundaries. In-place writes through either name modify the shared file; replacing one name with rename() instead rebinds that name and leaves the other hard links attached to their original inode. Removing one link does not remove the other names. Separate open() calls through these names still create separate open file descriptions.

Relations

related
inode, atomic-rename, unlink, open-file-description, directory-fsync

Advantages

Limitations

Citations

  1. Linux man-pages 6.19: rename(2) (accessed 2026-10-15)
  2. Linux man-pages 6.19: open(2) (accessed 2026-10-15)
  3. Hesela: The name changes; existing readers do not (accessed 2026-10-15)

JSON: /data/terms/hard-link.json