1LINK(1P) POSIX Programmer's Manual LINK(1P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
11
13 link — call link() function
14
16 link file1 file2
17
19 The link utility shall perform the function call:
20
21 link(file1, file2);
22
23 A user may need appropriate privileges to invoke the link utility.
24
26 None.
27
29 The following operands shall be supported:
30
31 file1 The pathname of an existing file.
32
33 file2 The pathname of the new directory entry to be created.
34
36 Not used.
37
39 Not used.
40
42 The following environment variables shall affect the execution of link:
43
44 LANG Provide a default value for the internationalization vari‐
45 ables that are unset or null. (See the Base Definitions vol‐
46 ume of POSIX.1‐2008, Section 8.2, Internationalization Vari‐
47 ables for the precedence of internationalization variables
48 used to determine the values of locale categories.)
49
50 LC_ALL If set to a non-empty string value, override the values of
51 all the other internationalization variables.
52
53 LC_CTYPE Determine the locale for the interpretation of sequences of
54 bytes of text data as characters (for example, single-byte as
55 opposed to multi-byte characters in arguments).
56
57 LC_MESSAGES
58 Determine the locale that should be used to affect the format
59 and contents of diagnostic messages written to standard
60 error.
61
62 NLSPATH Determine the location of message catalogs for the processing
63 of LC_MESSAGES.
64
66 Default.
67
69 None.
70
72 The standard error shall be used only for diagnostic messages.
73
75 None.
76
78 None.
79
81 The following exit values shall be returned:
82
83 0 Successful completion.
84
85 >0 An error occurred.
86
88 Default.
89
90 The following sections are informative.
91
93 None.
94
96 None.
97
99 None.
100
102 None.
103
105 ln, unlink
106
107 The Base Definitions volume of POSIX.1‐2008, Chapter 8, Environment
108 Variables
109
110 The System Interfaces volume of POSIX.1‐2008, link()
111
113 Portions of this text are reprinted and reproduced in electronic form
114 from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
115 -- Portable Operating System Interface (POSIX), The Open Group Base
116 Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
117 cal and Electronics Engineers, Inc and The Open Group. (This is
118 POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
119 event of any discrepancy between this version and the original IEEE and
120 The Open Group Standard, the original IEEE and The Open Group Standard
121 is the referee document. The original Standard can be obtained online
122 at http://www.unix.org/online.html .
123
124 Any typographical or formatting errors that appear in this page are
125 most likely to have been introduced during the conversion of the source
126 files to man page format. To report such errors, see https://www.ker‐
127 nel.org/doc/man-pages/reporting_bugs.html .
128
129
130
131IEEE/The Open Group 2013 LINK(1P)