A hard link is a link that directly associates a name with a given file in an operating system. Unlike a soft link, which changes the pointer when the file is renamed, a hard link still points to the underlying file even if the file name changes.

Hard links are more persistent in connecting a directory entry or file to the same memory space. Hard links resist file replacement. Having multiple hard links can result in the “alias effect” where files are known under multiple names.