BSD 3 development
[unix-history] / usr / doc / berknet / ref.n
CommitLineData
4a4ec2ac
ES
1.LP
2.sp 2
3.ce
4.B
5\s+2Berkeley Network Quick Reference\s0
6.R
7.sp 2
8.ds a \fR[\fP
9.ds b \fR]\fP
10\fBCommand Summary\fP
11.TS
12l l l.
13\fBnetcp\fI fromfile tofile\fR % netcp\ \ defs.h\ \ C:defs.h copy defs.h to C machine
14 % netcp\ \ A:fig1\ \ fig1 copy from A to here
15 % netcp\ \ Cory:q1\ \ D:q1 copy from Cory to D
16\fBmail\fI mach:user\fR % mail\ \ A:alan send mail to ``alan'' on A
17 % mail\ \ A:alan\ \ C:george multiple recipients
18\fBnetmail \*a\fImach\*b\fR % netmail\ \ Cory read mail on Cory machine
19\fBnetlpr \*a\-m \fImach\*b\fI file\fR % netlpr\ \ \-m D\ \ p1.p print p1.p on D lineprinter
20\fBnetq \*a\-a\*b \*a\fImach\*b\fR % netq list network queue
21 % netq\ \ \-a\ \ Cory ... all files to Cory
22\fBnetrm \*a\-\*b \*a\fIcode\*b\fR % netrm\ \ \- remove the user's requests
23\fBnet \*a\-m \fImach\fB\*b \*a\-\*b \fIcommand\fR % net\ \ \-m A\ \ who send who to A machine
24 % net\ \ \-\ \ \-mA\ \ lpr\ \ <f1 \fIlpr\fP file ``f1'' on A
25.TE
26.LP
27The
28.I netcp,
29.I netmail,
30.I netlpr,
31and
32.I net
33commands need remote login names
34and passwords.
35They may be provided when prompted-for on the terminal,
36on the command line, or in a ``.netrc'' file in the user's login directory.
37.LP
38\fBOther Options\fP
39.TS
40l l.
41\fB\-l\fP \fIlogin\fP login name on remote machine
42\fB\-p\fP \fIpassword\fP password on remote machine
43\fB\-f\fP prompt for login name and password
44\fB\-n\fP silent mode\- no messages sent back
45\fB\-m\fP \fImach\fP send to \fImach\fR (only for \fInet, netlpr\fP)
46\fB\-\fP input from standard input (only for \fInet\fP)
47.TE
48.SH
49.B
50Example ``.netrc'' file:
51.R
52.LP
53.DS L
54default Cory
55machine Cory login bob
56machine A login ray
57.DE
58.SH
59\fB.netrc Options\fP
60.TS
61l l l l.
62Option Parameter Default Comment
63.sp .5
64\fBlogin\fR name localname login name for remote machine
65\fBpassword\fR password (none) password for remote login name
66\fBcommand\fR command (none) default command to be executed
67\fBwrite\fR yes/no yes if possible, write to user
68\fBforce\fR yes/no no always prompt for name and password
69.TE
70.LP
71.ce 99
72.cs R 23
73.DS
74\fBTopology\fR
75.sp
76 A
77 |
78Cory\-\-\-C\-\-\-D
79\ \ | |\ |
80VAX E SRC
81.cs R
82.ce
83.DE