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