4BSD/usr/man/cat1/ln.1

Compare this file to the similar file:
Show the results in this format:




LN(1)               UNIX Programmer's Manual                LN(1)



NAME
     ln - make links

SYNOPSIS
     ln name1 [ name2 ]
     ln name ... directory

DESCRIPTION
     A link is a directory entry referring to a file; the same
     file (together with its size, all its protection informa-
     tion, 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 in the file are effective independently
     of the name by which the file is known.

     Given one or two arguments, _l_n creates a link to an existing
     file _n_a_m_e_1.  If _n_a_m_e_2 is given, the link has that name;
     _n_a_m_e_2 may also be a directory in which to place the link;
     otherwise it is placed in the current directory.  If only
     the directory is specified, the link will be made with its
     name the same as the last component of _n_a_m_e_1.

     Given more than two arguments, _l_n makes links to all the
     named files in the named directory.  The links made will
     have the same name as the files being linked to.

     It is forbidden to link to a directory or to link across
     file systems.

SEE ALSO
     rm(1), cp(1), mv(1)
























Printed 11/10/80            11/16/79                            1