>_ IzzyLab

Topic breakdown

In Linux a file's name and its data are separate: the content and metadata are held by the inode, while the name in a directory is just a reference to that inode. A hard link is another name pointing to the same inode — not a copy, but a second entry to one file; edits show up "in both" because there's only one file. A link is created with the ln command, and here the difference from a symbolic link is crucial: the -s flag would give a separate pointer file with its own inode, while without it you get exactly a hard link with a shared inode.

What's checked

  1. link and original share an inode

What it looks like