manual page first distributed with 4.2BSD
[unix-history] / usr / src / usr.bin / telnet / telnet.1
CommitLineData
24854a1c
KM
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.
4.\"
5.\" @(#)telnet.1 5.1 (Berkeley) %G%
6.\"
7.TH TELNET 1C "18 July 1983"
8.UC 5
9.SH NAME
10telnet \- user interface to the TELNET protocol
11.SH SYNOPSIS
12telnet [ host [ port ] ]
13.SH DESCRIPTION
14.I Telnet
15is used to communicate with another host using the TELNET protocol. If
16.I telnet
17is invoked without arguments, it enters command mode,
18indicated by its prompt (\*(lqtelnet>\*(rq).
19In this mode, it accepts and executes the commands listed below.
20If it is invoked with arguments, it performs an
21.I open
22command (see below) with those arguments.
23.PP
24Once a connection has been opened,
25.I telnet
26enters input mode.
27In this mode, text typed is sent to the remote host. To issue
28.I telnet
29commands when in input mode, precede them with the
30.I telnet
31\*(lqescape character\*(rq (initially \*(lq^[\*(rq).
32When in command mode, the normal terminal editing conventions are available.
33.PP
34The following commands are available.
35Only enough of each command to uniquely identify it need be typed.
36.PP
37.TP
38\fBopen\fP \fIhost\fP [ \fIport\fP ]
39Open a connection to the named host. If the no port number
40is specified,
41.I telnet
42will attempt to contact a TELNET server at the default port.
43The host specification may be either a host name (see
44.IR hosts (5))
45or an Internet address specified in the \*(lqdot notation\*(rq.
46.TP
47.B close
48Close a TELNET session and return to command mode.
49.TP
50.B quit
51Close any open TELNET session and exit
52.IR telnet .
53.TP
54.B z
55Suspend
56.IR telnet .
57This command only works when the user is using the
58.IR csh (1).
59.TP
60\fBescape\fP [ \fIescape-char\fP ]
61Set the
62.I telnet
63\*(lqescape character\*(rq. Control characters may
64be specified as \*(lq^\*(rq followed by a single
65letter; e.g. \*(lqcontrol-X\*(rq is \*(lq^X\*(rq.
66.TP
67.B status
68Show the current status of
69.IR telnet .
70This includes the peer one is connected to, as well
71as the state of debugging.
72.TP
73.B options
74Toggle viewing of TELNET options processing. When
75options viewing is enabled, all TELNET option negotiations
76will be displayed. Options sent by
77.I telnet
78are displayed as \*(lqSENT\*(rq, while options
79received from the TELNET server are displayed as
80\*(lqRCVD\*(rq.
81.TP
82.B crmod
83Toggle carriage return mode. When this mode is enabled
84any carriage return characters received from the remote
85host will be mapped into a carriage return and a line
86feed. This mode does not affect those characters typed
87by the user, only those received. This mode is not very
88useful, but is required for some hosts that like to ask
89the user to do local echoing.
90.TP
91\fB?\fP [ \fIcommand\fP ]
92Get help. With no arguments,
93.I telnet
94prints a help summary.
95If a command is specified,
96.I telnet
97will print the help information available about the command only.
98.SH BUGS
99This implementation is very simple because
100.IR rlogin (1C)
101is the standard mechanism used to communicate locally
102with hosts.