hard link

(redirected from Hard links)

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 <old name> <new name>

where <old name> and <new name> 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).

This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)
References in periodicals archive ?
'Hoylake is a bone hard links course and the ideal preparation would be to play on a similar-style course the week before.'
The sole of the 60 degree wedge has been ground down to almost 0 bounce so this is the ideal club for hard links fairways.
Most players now carry a lob wedge with between 58 and 60 degrees of loft, but they may still make adjustments to help nip the ball from the hard links fairways.
But he managed just one birdie in a shabby round that showed just how hard links golf can be to visiting Americans.
* Visualization and production capabilities, such as edge highlighting, a whole new shading mode that is said to quickly reveal where a shape abruptly dips below the surface, thus helping users manage shapes with indentations that were previously difficult to detect without rotating the shape or interrupting work flow; a new modeling capability that extends multiple face edges in one command for quicker design development; a new shaded echoing capability that displays a shaded Gaussian view of the geometry throughout the process; a new Clone command, which is said to duplicate multiple inter-related components and automatically provide hard links (whereby parts to be cloned can be sourced from different files, multiple models, and multiple CAM plans, VX Corp.
FDR/UPSTREAM 3.2.1 enhancements, in addition to S/390 Linux Rescuer, add support for file-level backup/restore of FIFO and device files, expanding the capability of UPSTREAM to protect all existing Linux file types including hard links, symbolic links, owners, single file systems, Reiser file systems as well as ext2, ext3, XFS and remote NFS attachments.
On a hard links course, in the wind, with enormous aeroplanes screaming at you in their take-off paces, it occurs to you that golf was invented by lunatics as a means of torturing optimists.
As Daripa and Varotto (1998a) show, regulation by such a hard link is not sensitive to agency problems.(6) But this is no longer true when we consider a soft-link approach.
So, while a hard-link regime such as VaR is subject to measurement problems--as highlighted in the literature--and is economically unattractive in some respects, the presence of a hard link does manage to sort out some potential strategic complications.