BSD 4_1_snap development
[unix-history] / usr / man / man1 / ln.1
CommitLineData
e3758c96
C
1.TH LN 1 11/16/79
2.UC 4
3.SH NAME
4ln \- make links
5.SH SYNOPSIS
6.B ln
7name1 [ name2 ]
8.br
9.B ln
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
23Given one or two arguments,
24.I ln
25creates a link to an existing file
26.IR name1 .
27If
28.I name2
29is given, the link has that name;
30.I name2
31may also be a directory in which to place the link;
32otherwise it is placed in the current directory.
33If only the directory is specified, the link will be made with
34its name the same as the last component
35of
36.IR name1 .
37.PP
38Given more than two arguments,
39.I ln
40makes links to all the named files in the named directory.
41The links made will have the same name as the files being linked to.
42.PP
43It is forbidden to link to a directory
44or to link across file systems.
45.SH "SEE ALSO"
46rm(1), cp(1), mv(1)