||The topic of this article may not meet Wikipedia's general notability guideline. (September 2012) (Learn how and when to remove this template message)|
The link utility is a Unix command line program that creates a hard link from an existing directory entry to a new directory entry. It does no more than call the link() system function. It does not perform error checking before attempting to create the link. It returns an exit status that indicates whether the link was created (0 if successful, >0 if an error occurred). Creating a link to a directory entry that is itself a directory requires elevated privileges.
link (-s) source target
- The pathname of an existing folder or file.
- The name of the link to be created.
Note that source must specify an existing folder or file, and target must specify a non-existent entry in an existing directory.
- IEEE Std 1003.1-2004 Shell & Utilities volume—list of SUS utilities.
- GNU Coreutils link documentation.
|This Unix-related article is a stub. You can help Wikipedia by expanding it.|