Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
Developer Support
QNX Documentation Library
QNX Developer Support

QNX Developer Support

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

[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]