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