hard link


Also found in: Wikipedia.

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).

http://microsoft.com/windowsxp/home/using/productdoc/en/fsutil_hardlink.asp.
References in periodicals archive ?
The proposed hard link across the Tongass Narrows from Ketchikan City and Ketchikan Gateway Borough, located on Revillagigedo Is land, to Ketchikan International Air port, located on Gravina Island, has spurred controversy around the world, literally.
The reason for this gene rearrangement outside the bone marrow remains elusive, as does any hard link to the chronic autoimmune problems these mice face.
As Daripa and Varotto (1998a) show, regulation by such a hard link is not sensitive to agency problems.
While the series neither alleged nor established any hard link between the CIA and drugs, the logo that ran on the series' Web site and in reprints shows a man smoking a crack pipe superimposed over the CIA seal (the logo did not accompany the series in the newspaper).
File-level de-duplication - Duplicate files on the source system are identified and Aspera Sync instructs the target system to create a hard link rather than resending the file eliminating unnecessary transfers, reducing sync times and reducing storage use.
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.
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.
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.