Hard link


file system
One of several directory entries which refer to the same Unix file. A hard link is created with the “ln” (link) command:
ln
where and are pathnames within the same file system. Hard links to the same file are indistinguishable from each other except that they have different pathnames. They all refer to the same inode and the inode contains all the information about a file.
The standard ln command does not usually allow you to create a hard link to a directory, chiefly because the standard rm and rmdir commands do not allow you to delete such a link. Some systems provide link and unlink commands which give direct access to the system calls of the same name, for which no such restrictions apply.
Normally all hard links to a file must be in the same file system because a directory entry just relates a pathname to an inode within the same file system. The only exception is a mount point.
The restrictions on hard links to directories and between file systems are very common but are not mandated by POSIX. Symbolic links are often used instead of hard links because they do not suffer from these restrictions.
The space associated with a file is not freed until all the hard links to the file are deleted. This explains why the system call to delete a file is called “unlink”.
Microsoft Windows NTFS supports hard links via the fsutil command.
Unix manual page: ln(1).
(http://microsoft.com/windowsxp/home/using/productdoc/en/fsutil_hardlink.asp).
(2004-02-24)

Read Also:

  • Hard linking

    hard link

  • Hard liquor

    noun phrase Whiskey, rum, gin, brandy, etc., as distinct from wine and beer; spirits; strong waters (1879+) Distilled alcoholic beverages, such as gin or whiskey. For example, We’re serving wine and beer but no hard liquor. The hard here refers to their high alcoholic content, which is also true for hard cider, although the latter […]

  • Hard-luck story

    noun phrase A tale calculated to gain sympathy and help: He gives me the same old hard-luck story every time (1900+)

  • Hardly

    [hahrd-lee] /ˈhɑrd li/ adverb 1. only just; almost not; barely: We had hardly reached the lake when it started raining. hardly any; hardly ever. 2. not at all; scarcely: That report is hardly surprising. 3. with little likelihood: He will hardly come now. 4. forcefully or vigorously. 5. with pain or difficulty. 6. British. harshly […]

  • Hardly ever

    Also, rarely ever, scarcely ever. Very seldom, almost never, as in This kind of thief is hardly ever caught, or He rarely ever brings up his wartime experiences. The ever in these expressions, first recorded in 1694, serves as an intensifier.


Disclaimer: Hard link definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.