LN(C) UNIX System V
Name
ln - makes a link to a file
Syntax
ln [ -f ] file1 [ file2 ...] target
Description
A link is a directory entry referring to a file. The same
file (together with its size, all its protection
information, etc) may have several links to it. There is no
way to distinguish a link to a file from its original
directory entry. Any changes to the file are effective
independent of the name by which the file is known.
If target is a directory, then one or more files are linked
to that directory.
If ln determines that the mode of target forbids writing, it
will print the mode [see chmod(C)], ask for a response, and
read the standard input for one line. If the line begins
with y, the ln occurs, if permissible; if not, the command
exits.
When the -f option is used or if the standard input is not a
terminal, no questions are asked and the ln is done.
See Also
cp(C), mv(C), rm(C)
Standards Conformance
ln is conformant with:
AT&T SVID Issue 2, Select Code 307-127;
and The X/Open Portability Guide II of January 1987.
(printed 2/15/90) LN(C)