Two directory entries share one inode, but replacing one entry separates their contents.

Hard links share an inode until a name is replaced

A hard link adds another directory entry referring to an existing file. Neither name is intrinsically the original: both identify the same inode within its filesystem. File content, ownership, permissions, and link count belong to that shared object. A filename is a way to reach it, so changes to directory entries must be distinguished from changes to the file itself. ...

October 10, 2027 · 5 min · XB Field Notes