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