link (Unix)

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
Operating systemUnix and Unix-like
TypeCommand

The ln command is more commonly used as it provides more features: it can create both hard links and symbolic links, and has error checking.

Synopsis

link (-s) source target

source
The pathname of an existing folder or file.
target
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.

Standards

The link command is part of the Single UNIX Specification (SUS), specified in the Shell and Utilities volume of the IEEE 1003.1-2001 standard.

gollark: No, it's mostly just weird loop situations and the subjectivity of resource consumption decisions.
gollark: What was the other one? I wrote it down.
gollark: Hmm. Maybe.
gollark: What if there are recursive loops which result in more items? How do you use those right?
gollark: Sometimes there are multiple ways to craft a thing. What do you do? How do you pick the right one?

See also

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.