BSD 2 development
[unix-history] / man / netcp.u
CommitLineData
d66cb447
ES
1.TH NETCP UCB 2/24/79 UCB
2.ds s UCB
3.SH NAME
4netcp \- remote copy of files through the net
5.SH SYNOPSIS
6.B netcp
7[
8.B \-l
9login ] [
10.B \-p
11password ]
12[
13.B \-f
14] [
15.B \-n
16] fromfile tofile
17.SH DESCRIPTION
18.I Netcp
19copies files between machines and is similar to
20.IR cp (1).
21At least one of
22.I fromfile
23and
24.I tofile
25must be remote; the
26.B \-l
27and
28.B \-p
29options specify the login name and password
30for that remote machine.
31If these options are not specified,
32the name and password are prompted for on the terminal.
33The
34.B \-f
35option forces prompting for the login name and password;
36the
37.B \-n
38option prevents confirmation
39or error messages from being returned.
40.PP
41.I Fromfile
42and
43.I tofile
44follow these conventions:
45.TP 4
461.
47A simple filename is assumed to be local and from the current directory.
48.TP 4
492.
50A filename preceded by a machine designator (see below)
51is a reference to a file on the specified remote machine.
52If a full pathname is not given, it is assumed to be from the login directory.
53.PP
54Examples:
55.IP " grades.p" 20
56file in the current directory on local machine
57.IP " C:junk" 20
58file in your login directory on C
59.IP " /usr/lib/pq" 20
60file on local machine
61.IP " C:comp/c2.c" 20
62file in a subdirectory on C machine
63.PP
64.I Netcp
65executes the
66.IR net (\*s)
67command.
68.SH "SEE ALSO"
69net(\*s), netrm(\*s), netq(\*s), netlog(\*s),
70netlpr(\*s), netmail(\*s), cp(1), mail(1)
71.SH AUTHOR
72Eric Schmidt
73.SH BUGS
74The second filename may not be defaulted to a directory name,
75it must be given explicitly.
76.br
77The file mode may or may not be set correctly.