BSD 3 development
[unix-history] / usr / man / man1 / ln.1
CommitLineData
a7d62908
BJ
1.TH LN 1 11/16/79
2.UC
3.SH NAME
4ln, lnall \- make links
5.SH SYNOPSIS
6.B ln
7name1 [ name2 ]
8.br
9.B lnall
10name ... directory
11.SH DESCRIPTION
12A link is a directory entry referring
13to a file; the same file (together with
14its size, all its protection
15information, etc.)
16may have several links to it.
17There is no way to distinguish a link to a file
18from its original directory entry;
19any changes in the
20file are effective
21independently of the name by which the file is known.
22.PP
23.I Ln
24creates a link to an existing file
25.IR name1 .
26If
27.I name2
28is given, the link has that name;
29.I name2 may also be a directory in which to place the link;
30otherwise it is placed in the current directory.
31If only the directory is specified, the link will be made with
32its name the same as the last component
33of
34.IR name1 .
35.PP
36.I Lnall
37makes links to all the named files in the named directory.
38The links made will have the same name as the files being linked to.
39.PP
40It is forbidden to link to a directory
41or to link across file systems.
42.SH "SEE ALSO"
43rm(1)