Commit | Line | Data |
---|---|---|
a44f9dfd KT |
1 | .TH LN 1 |
2 | .SH NAME | |
3 | ln \- make a link | |
4 | .SH SYNOPSIS | |
5 | .B ln | |
6 | name1 [ name2 ] | |
7 | .SH DESCRIPTION | |
8 | A link is a directory entry referring | |
9 | to a file; the same file (together with | |
10 | its size, all its protection | |
11 | information, etc.) | |
12 | may have several links to it. | |
13 | There is no way to distinguish a link to a file | |
14 | from its original directory entry; | |
15 | any changes in the | |
16 | file are effective | |
17 | independently of the name by which the file is known. | |
18 | .PP | |
19 | .I Ln | |
20 | creates a link to an existing file | |
21 | .IR name1 . | |
22 | If | |
23 | .I name2 | |
24 | is given, the link has that name; | |
25 | otherwise it is placed in the current directory | |
26 | and its name is the last component | |
27 | of | |
28 | .IR name1 . | |
29 | .PP | |
30 | It is forbidden to link to a directory | |
31 | or to link across file systems. | |
32 | .SH "SEE ALSO" | |
33 | rm(1) |