UUCP(1P)
π UUCP(1P) β the POSIX Programmer's Manual one, bestie
okay so real talk, this is the POSIX Programmer's Manual page for uucp. Not the Linux one, the POSIX one. iykyk.
πΈ PROLOG πΈ
This manual page is part of the POSIX Programmer's Manual. Heads up though: the Linux implementation of this interface may differ β so go consult the corresponding Linux manual page for the deets on Linux behavior. Or, plot twist, the interface might not even be implemented on Linux at all. π
β¨ NAME β¨
uucp β system-to-system copy. that's it, that's the whole vibe. copying files between machines, iconic behavior. π
π SYNOPSIS π
uucp [-cCdfjmr] [-n user] source-file... destination-file
π¦ DESCRIPTION π¦
So the uucp utility shall copy files named by the source-file argument over to the destination-file argument. and like, the files in question can be chillin' on local or remote systems. no biggie.
now, lowkey important: uucp cannot guarantee support for all character encodings in all circumstances. For example, transmission data may be restricted to 7 bits by the underlying network, 8-bit data and filenames need not be portable to non-internationalized systems, and so on. Under these circumstances, it is recommended that only characters defined in the ISO/IEC 646:1991 standard International Reference Version (equivalent to ASCII) 7-bit range of characters be used, and that only characters defined in the portable filename character set be used for naming files. The protocol for transfer of files is unspecified by POSIX.1β2008. (yes, unspecified. don't come for me.)
Typical implementations of this utility require a communications line configured to use the Base Definitions volume of POSIX.1β2017, Chapter 11, General Terminal Interface β but other communications means may be used too, she's flexible. On systems where there are no available communications means (either temporarily or permanently), this utility shall write an error message describing the problem and exit with a non-zero exit status. it's giving "can't reach you bestie, leaving a note." π
π OPTIONS π
The uucp utility shall conform to the Base Definitions volume of POSIX.1β2017, Section 12.2, Utility Syntax Guidelines. (yes, the guidelines. we respect them here.)
The following options shall be supported:
-cβ Do not copy local file to the spool directory for transfer to the remote machine. this is the default, btw. she's lazy but in a correct way. π-Cβ Force the copy of local files to the spool directory for transfer. opposite energy of-c, we love range.-dβ Make all necessary directories for the file copy. also the default. yes, both of these are defaults, we're just built different.-fβ Do not make intermediate directories for the file copy. minimal effort, respect.-jβ Write the job identification string to standard output. This job identification can be used byuustatto obtain the status or terminate a job. so like, screenshot that job id, you'll need it later. πΈ-mβ Send mail to the requester when the copy is completed. a lil "we made it π«Ά" notification.-n userβ Notify user on the remote system that a file was sent. tell the girlies on the other side.-rβ Do not start the file transfer; just queue the job. queued and unbothered. π§
π OPERANDS π
The following operands shall be supported:
destination-file,source-fileβ A pathname of a file to be copied to, or from, respectively. Either name can be a pathname on the local machine, or can have the form:
system-name!pathname
where system-name is taken from a list of system names that uucp knows about. The destination system-name can also be a list of names such as:
system-name!system-name!...!system-name!pathname
in which case, an attempt is made to send the file via the specified route to the destination. β οΈ Care should be taken to ensure that intermediate nodes in the route are willing to forward information. like, ask permission first, bestie, don't just hop through people's machines.
The shell pattern matching notation characters '?', '*', and "[...]" appearing in pathname shall be expanded on the appropriate system.
Pathnames can be one of:
- An absolute pathname.
- A pathname preceded by
~userwhere user is a login name on the specified system and is replaced by that user's login directory. Note that if an invalid login is specified, the default is to the public directory (calledPUBDIR; the actual location ofPUBDIRis implementation-defined). - A pathname preceded by
~/destinationwhere destination is appended toPUBDIR.
Note: This destination is treated as a filename unless more than one file is being transferred by this request or the destination is already a directory. To ensure that it is a directory, follow the destination with a'/'. For example,~/dan/as the destination makes the directoryPUBDIR/danif it does not exist and puts the requested files in that directory. (the trailing slash is the whole trick, don't skip it π )
- Anything else shall be prefixed by the current directory.
If the result is an erroneous pathname for the remote system, the copy shall fail. If the destination-file is a directory, the last part of the source-file name shall be used.
The read, write, and execute permissions given by uucp are implementation-defined. π€·
π STDIN π
Not used. she's not reading your keyboard, she's busy.
π INPUT FILES π
The files to be copied are regular files. normal files only, no chaos gremlins.
πΈ ENVIRONMENT VARIABLES πΈ
The following environment variables shall affect the execution of uucp:
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 overrides. main character energy fr.LC_COLLATEβ Determine the locale for the behavior of ranges, equivalence classes, and multi-character collating elements within bracketed filename patterns.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 and input files) and the behavior of character classes within bracketed filename patterns (for example,"'[[:lower:]]*'").LC_MESSAGESβ Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error, and informative messages written to standard output.NLSPATHβ Determine the location of message catalogs for the processing ofLC_MESSAGES.
β ASYNCHRONOUS EVENTS β
Default. nothing dramatic. π§
π STDOUT π
Not used.
π₯ STDERR π₯
The standard error shall be used only for diagnostic messages. only the drama channel.
π¦ OUTPUT FILES π¦
The output files (which may be on other systems) are copies of the input files.
If -m is used, mail files are modified. π¬
π EXTENDED DESCRIPTION π
None. moving on, nothing to see here. π
π 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. (aka: not normative, just goss.)
π APPLICATION USAGE π
This utility is part of the UUCP Utilities option and need not be supported by all implementations. so like, check before you assume, bestie.
The domain of remotely accessible files can (and for obvious security reasons usually should) be severely restricted. lock that down. π
Note that the '!' character in addresses has to be escaped when using csh as a command interpreter because of its history substitution syntax. For ksh and sh the escape is not necessary, but may be used. csh girlies, escape your bangs, I don't make the rules.
As noted above, shell metacharacters appearing in pathnames are expanded on the appropriate system. On an internationalized system, this is done under the control of local settings of LC_COLLATE and LC_CTYPE. Thus, care should be taken when using bracketed filename patterns, as collation and typing rules may vary from one system to another. Also be aware that certain types of expression (that is, equivalence classes, character classes, and collating symbols) need not be supported on non-internationalized systems. basically: your pattern might mean something else on the other side. vibe check your patterns. π«Ά
π§ EXAMPLES π§
None. no examples, we're just trusting you.
β RATIONALE β
None.
πΈ FUTURE DIRECTIONS πΈ
None.
π SEE ALSO π
mailx, uuencode, uustat, uux
The Base Definitions volume of POSIX.1β2017, Chapter 8, Environment Variables, Chapter 11, General Terminal Interface, Section 12.2, Utility Syntax Guidelines
π 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 .
okay that's the whole page, no cap. π this one came to you from IEEE/The Open Group, 2017, and yes the manual is literally called UUCP(1P). go forth and copy files responsibly, bestie. π¦β¨
π¦ 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