1LINK(1P)                   POSIX Programmer's Manual                  LINK(1P)
2
3
4

PROLOG

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

NAME

12       link — call link() function
13

SYNOPSIS

15       link file1 file2
16

DESCRIPTION

18       The link utility shall perform the function call:
19
20
21           link(file1, file2);
22
23       A user may need appropriate privileges to invoke the link utility.
24

OPTIONS

26       None.
27

OPERANDS

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

STDIN

36       Not used.
37

INPUT FILES

39       Not used.
40

ENVIRONMENT VARIABLES

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‐2017, 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

ASYNCHRONOUS EVENTS

66       Default.
67

STDOUT

69       None.
70

STDERR

72       The standard error shall be used only for diagnostic messages.
73

OUTPUT FILES

75       None.
76

EXTENDED DESCRIPTION

78       None.
79

EXIT STATUS

81       The following exit values shall be returned:
82
83        0    Successful completion.
84
85       >0    An error occurred.
86

CONSEQUENCES OF ERRORS

88       Default.
89
90       The following sections are informative.
91

APPLICATION USAGE

93       None.
94

EXAMPLES

96       None.
97

RATIONALE

99       None.
100

FUTURE DIRECTIONS

102       None.
103

SEE ALSO

105       ln, unlink
106
107       The Base Definitions volume of  POSIX.1‐2017,  Chapter  8,  Environment
108       Variables
109
110       The System Interfaces volume of POSIX.1‐2017, link()
111
113       Portions  of  this text are reprinted and reproduced in electronic form
114       from IEEE Std 1003.1-2017, Standard for Information Technology --  Por‐
115       table  Operating System Interface (POSIX), The Open Group Base Specifi‐
116       cations Issue 7, 2018 Edition, Copyright (C) 2018 by the  Institute  of
117       Electrical  and  Electronics Engineers, Inc and The Open Group.  In the
118       event of any discrepancy between this version and the original IEEE and
119       The  Open Group Standard, the original IEEE and The Open Group Standard
120       is the referee document. The original Standard can be  obtained  online
121       at http://www.opengroup.org/unix/online.html .
122
123       Any  typographical  or  formatting  errors that appear in this page are
124       most likely to have been introduced during the conversion of the source
125       files  to  man page format. To report such errors, see https://www.ker
126       nel.org/doc/man-pages/reporting_bugs.html .
127
128
129
130IEEE/The Open Group                  2017                             LINK(1P)
Impressum