What is a hard link?



  • Man page for ln command.

    Excerpt:

    A "hard link" is another name for an existing file; the link and the original are indistinguishable.  Technically speaking, they share the same inode, and the inode contains all the information about a file--indeed, it is not incorrect to say that the inode _is_ the file.
    
    Most systems prohibit making a hard link to a directory; on those where it is allowed, only the super-user can do so (and with caution, since creating a cycle will cause problems to many other utilities).  Hard links cannot cross file system boundaries.  (These restrictions are not mandated by POSIX, however.)
    


© Lightnetics 2024