1 .\" Copyright (c) 1983 Regents of the University of California.
2 .\" All rights reserved. The Berkeley software License Agreement
3 .\" specifies the terms and conditions for redistribution.
5 .\" @(#)rcp.1c 6.4 (Berkeley) 5/12/86
7 .TH RCP 1 "May 12, 1986"
10 rcp \- remote file copy
23 copies files between machines. Each
27 argument is either a remote file name of the
28 form ``rhost:path'', or a local file name (containing no `:' characters,
29 or a `/' before any `:'s).
34 is specified and any of the source files are directories,
36 copies each subtree rooted at that name; in this case
37 the destination must be a directory.
39 By default, the mode and owner of
41 are preserved if it already existed; otherwise the mode of the source file
44 on the destination host is used.
49 to attempt to preserve (duplicate) in its copies the modification
50 times and modes of the source files, ignoring the
55 is not a full path name, it is interpreted relative to
56 your login directory on
60 on a remote host may be quoted (using \e, ", or \(aa)
61 so that the metacharacters are interpreted remotely.
64 does not prompt for passwords; your current local user name
67 and allow remote command execution via
71 handles third party copies, where neither source nor target files
72 are on the current machine.
73 Hostnames may also take the form ``rname@rhost'' to use
75 rather than the current user name on the remote host.
76 The destination hostname may also take the form ``rhost.rname'' to
77 support destination machines that are running 4.2BSD
86 Doesn't detect all cases where the target of a copy might
87 be a file in cases where only a directory should be legal.
89 Is confused by any output generated by commands in a
90 \&.profile, or \&.*shrc file on the remote host.