[Previous] [Contents] [Index] [Next]

link

Create a hard link to a file

Syntax:

link existing new

Options:

existing
Pathname of an existing file.
new
Pathname of the new directory entry to be created.

Description:

The link utility creates a hard link, new, that points to another file, existing. This utility is a command-line interface to the link() function:

(void)link( existing, new );

To create a symbolic link, use ln.

Exit status:

0
Successful completion.
> 0
An error occurred.

Caveats:

The link command can be very dangerous to your filesystem; you should probably use ln instead.

See also:

ln, rm, unlink


[Previous] [Contents] [Index] [Next]