UNLINK(1P)
π UNLINK(1P) β POSIX Programmer's Manual π
okay bestie, welcome to the POSIX Programmer's Manual page for unlink π this one is part of that whole POSIX set, and here's the lil heads-up before we even start:
the Linux implementation of this interface may differ β so pls go check the corresponding Linux manual page for the deets on Linux behavior. also? it might not even be implemented on Linux at all. iconic of it, honestly. π
β¨ NAME β¨
unlink β call the unlink() function π¦
πΈ SYNOPSIS πΈ
unlink file
π DESCRIPTION π
the unlink utility shall perform this function call, literally:
unlink(file);
and ngl, a user may need appropriate privileges to invoke the unlink utility. so if it's giving "permission denied," that's why, bestie π
π OPTIONS π
None. not a single one. she's minimal, she's clean, she's booked and busy doing exactly one thing π
β OPERANDS β
the following operands shall be supported:
fileβ the pathname of an existing file. that's the one, that's the whole vibe.
π STDIN π
Not used. she doesn't want your input like that π«Ά
π§ INPUT FILES π§
Not used.
π ENVIRONMENT VARIABLES π
the following environment variables shall affect the execution of unlink:
LANGβ provides a default value for the internationalization variables that are unset or null. (peep the Base Definitions volume of POSIX.1β2017, Section 8.2, Internationalization Variables, for the precedence of internationalization variables used to determine the values of locale categories.)LC_ALLβ if set to a non-empty string value, this one overrides the values of all the other internationalization variables. she's the main character, periodt πLC_CTYPEβ determines the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi-byte characters in arguments).LC_MESSAGESβ determines the locale that should be used to affect the format and contents of diagnostic messages written to standard error.NLSPATHβ determines the location of message catalogs for the processing ofLC_MESSAGES.
π₯ ASYNCHRONOUS EVENTS π₯
Default.
β¨ STDOUT β¨
None. nothing. silence. she's not gonna chat with you π
π¦ STDERR π¦
the standard error shall be used only for diagnostic messages. that's it, that's the whole job.
πΈ OUTPUT FILES πΈ
None.
π EXTENDED DESCRIPTION π
None.
π EXIT STATUS π
the following exit values shall be returned:
0β successful completion. slay β¨>0β an error occurred. π
β CONSEQUENCES OF ERRORS β
Default.
the following sections are informative.
π APPLICATION USAGE π
None.
π§ EXAMPLES π§
None.
π RATIONALE π
None.
π FUTURE DIRECTIONS π
None.
π₯ SEE ALSO π₯
linkrm
the Base Definitions volume of POSIX.1β2017, Chapter 8, Environment Variables
the System Interfaces volume of POSIX.1β2017, unlink()
π COPYRIGHT π
okay so legally speaking, portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. and if there's ever any discrepancy between this version and the original IEEE and The Open Group Standard β the original IEEE and The Open Group Standard is the referee document, no cap. the original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
also, any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. to report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html . π«Ά
IEEE/The Open Group β 2017 β UNLINK(1P)
and that's the whole page, bestie π brought to you by IEEE/The Open Group, dated 2017, filed under UNLINK(1P) β go forth and unlink responsibly, mwah πβ¨
π¦ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms