Interview Prep/Linux/Filesystem Hierarchy, Inodes & Links

What is a hard link?

BeginnerConceptFilesystem Hierarchy, Inodes & Links
Answer

A hard link is an additional directory entry pointing at the same inode. All names are equal; there is no "original". The data is freed only when the link count reaches 0 and no process has it open.

ln data.txt data-hard.txt
ls -li data*.txt     # same inode number, link count 2
All Linux questions Roadmap: Linux

More on Filesystem Hierarchy, Inodes & Links