RCP(1)
π NAME π
okay so bestie, this is the RCP(1) page from the General Commands Manual, and itβs literally about rcp β remote file copy. slay.
β¨ SYNOPSIS β¨
rcp [-px] file1 file2
rcp [-px] [-r] file ... directory
π¦ DESCRIPTION π¦
rcp copies files between machines. Every file or directory argument is either a remote file name of the form rname@rhost:path, or a local file name (one that contains no : characters, or has a / before any :s). no cap.
the flag tea is:
-rβ if any of the source files are directories,rcpcopies each subtree rooted at that name; in this case the destination must be a directory. periodt.-pβ makesrcpattempt to preserve (duplicate) in its copies the modification times and modes of the source files, ignoring theumask. by default, the mode and owner offile2are preserved if it already existed; otherwise the mode of the source file modified byumask(2)on the destination host is used. iconic.
also, -x is chillinβ in the synopsis inside -px β the page doesnβt give it its own description, and Iβm not gonna make one up, bestie. π
If path is not a full path name, it is interpreted relative to the login directory of the specified user ruser on rhost, or your current user name if no other remote user name is specified. A path on a remote host may be quoted (using \, ", or Β΄) so that the metacharacters are interpreted remotely.
rcp does not prompt for passwords; it performs remote execution via rsh(1), and requires the same authorization. ngl, thatβs the whole auth vibe.
rcp handles third party copies, where neither source nor target files are on the current machine. main character energy.
π SEE ALSO π
cp(1), ftp(1), rsh(1), rlogin(1) β go read these too, bestie.
β HISTORY β
The rcp command appeared in 4.2BSD. vintage.
π BUGS π
- Doesn't detect all cases where the target of a copy might be a file in cases where only a directory should be legal.
- Is confused by any output generated by commands in a
.login,.profile, or.cshrcfile on the remote host. - The destination user and hostname may have to be specified as
rhost.rnamewhen the destination machine is running the 4.2BSD version ofrcp.
this page is serving Linux NetKit (0.17) realness, dated August 15, 1999 β bye bestie! π
π¦ where this page comes from
- epel 10: rsh 0.17-113.el10_2 Β· BSD-4-Clause-UC
- epel 9: rsh 0.17-102.el9 Β· BSD
- fedora 43: rsh 0.17-112.fc43 Β· BSD-4-Clause-UC
- fedora 44: rsh 0.17-113.fc44 Β· BSD-4-Clause-UC
- Copyright (c) 1983, 1990 The Regents of the University of California
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms