1UNLINK(1P)                 POSIX Programmer's Manual                UNLINK(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
11

NAME

13       unlink — call the unlink() function
14

SYNOPSIS

16       unlink file
17

DESCRIPTION

19       The unlink utility shall perform the function call:
20
21           unlink(file);
22
23       A user may need appropriate privileges to invoke the unlink utility.
24

OPTIONS

26       None.
27

OPERANDS

29       The following operands shall be supported:
30
31       file      The pathname of an existing file.
32

STDIN

34       Not used.
35

INPUT FILES

37       Not used.
38

ENVIRONMENT VARIABLES

40       The following environment  variables  shall  affect  the  execution  of
41       unlink:
42
43       LANG      Provide  a  default  value for the internationalization vari‐
44                 ables that are unset or null. (See the Base Definitions  vol‐
45                 ume  of POSIX.1‐2008, Section 8.2, Internationalization Vari‐
46                 ables for the precedence  of  internationalization  variables
47                 used to determine the values of locale categories.)
48
49       LC_ALL    If  set  to  a non-empty string value, override the values of
50                 all the other internationalization variables.
51
52       LC_CTYPE  Determine the locale for the interpretation of  sequences  of
53                 bytes of text data as characters (for example, single-byte as
54                 opposed to multi-byte characters in arguments).
55
56       LC_MESSAGES
57                 Determine the locale that should be used to affect the format
58                 and  contents  of  diagnostic  messages  written  to standard
59                 error.
60
61       NLSPATH   Determine the location of message catalogs for the processing
62                 of LC_MESSAGES.
63

ASYNCHRONOUS EVENTS

65       Default.
66

STDOUT

68       None.
69

STDERR

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

OUTPUT FILES

74       None.
75

EXTENDED DESCRIPTION

77       None.
78

EXIT STATUS

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

CONSEQUENCES OF ERRORS

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

APPLICATION USAGE

92       None.
93

EXAMPLES

95       None.
96

RATIONALE

98       None.
99

FUTURE DIRECTIONS

101       None.
102

SEE ALSO

104       link, rm
105
106       The  Base  Definitions  volume  of POSIX.1‐2008, Chapter 8, Environment
107       Variables
108
109       The System Interfaces volume of POSIX.1‐2008, unlink()
110
112       Portions of this text are reprinted and reproduced in  electronic  form
113       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
114       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
115       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
116       cal and Electronics Engineers,  Inc  and  The  Open  Group.   (This  is
117       POSIX.1-2008  with  the  2013  Technical Corrigendum 1 applied.) 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.unix.org/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                  2013                           UNLINK(1P)
Impressum