LINK(1POSIX)
π LINK(1POSIX) π
okay bestie, welcome to the POSIX Programmer's Manual β yes, that manual, the big official one β¨
πΈ PROLOG πΈ
okay so first things first, this manual page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ (so like, go check the corresponding Linux manual page for the deets on Linux behavior), or honestly the interface might not even be implemented on Linux at all. no cap. π
β¨ NAME β¨
link β call link() function. that's it, that's the whole vibe. π¦
π SYNOPSIS π
link file1 file2
π DESCRIPTION π
so the link utility shall perform the function call:
link(file1, file2);
and here's the tea: a user may need appropriate privileges to invoke the link utility. like, permissions check, bestie. π₯
π OPTIONS π
None. literally none. zero. nada. the options section said "None." and we respect that. periodt. π
π OPERANDS π
the following operands shall be supported:
file1β the pathname of an existing file. it gotta exist, okay? π₯Ίfile2β the pathname of the new directory entry to be created. this is the new one you're making, main character energy β¨
π§ STDIN π§
Not used. she doesn't read from stdin, she's not about that life. π
π INPUT FILES π
Not used. nope, no input files here either. π
π ENVIRONMENT VARIABLES π
the following environment variables shall affect the execution of link:
LANGβ provide a default value for the internationalization variables that are unset or null. (see 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, override the values of all the other internationalization variables. she's the boss of everyone, lowkey. πLC_CTYPEβ determine 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β determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.NLSPATHβ determine the location of message catalogs for the processing ofLC_MESSAGES.
β ASYNCHRONOUS EVENTS β
Default. the standard-est of behavior. π
π¦ STDOUT π¦
None. not a single byte, bestie. silence. iconic. β¨
πΈ STDERR πΈ
the standard error shall be used only for diagnostic messages. so if something goes wrong, that's where you'll hear about it. π
π OUTPUT FILES π
None. nothing gets written out. it's giving minimalist. π
π EXTENDED DESCRIPTION π
None. no extended description, no secret bonus content. π₯Ί
π₯ EXIT STATUS π₯
the following exit values shall be returned:
0β successful completion. we ate. π>0β an error occurred. oop. π
π CONSEQUENCES OF ERRORS π
Default.
the following sections are informative. so like, this is the "extra reading, not the rules" part, iykyk. π
π APPLICATION USAGE π
None. π
π§ EXAMPLES π§
None. no examples, we're just out here raw-dogging the spec. π
π RATIONALE π
None. π
π FUTURE DIRECTIONS π
None. β¨
πΈ SEE ALSO πΈ
ln, unlink
the Base Definitions volume of POSIX.1β2017, Chapter 8, Environment Variables
the System Interfaces volume of POSIX.1β2017, link()
π COPYRIGHT π
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. In the event of 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. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
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 .
and that's the whole page bestie!! π«Ά go make some hard links and slay π
okay so this was IEEE/The Open Group, 2017, and the page is LINK(1POSIX). thanks for reading, mwah πβ¨ππ¦πΈ
π¦ where this page comes from
- debian bookworm: manpages-posix 2017a-2 Β· Other
- debian trixie: manpages-posix 2017a-2 Β· Other
- ubuntu jammy: manpages-posix 2017a-2 Β· Other
- ubuntu noble: manpages-posix 2017a-2 Β· Other
- ubuntu resolute: manpages-posix 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms