TELNET(1)
NAME
telnet − user interface to the TELNET protocol
USAGE
telnet [ host [ port ] ]
DESCRIPTION
Telnet helps communicate with another host using the TELNET protocol. If it is invoked without arguments, telnet enters command mode, indicated by its prompt (“telnet>”). In this mode, telnet accepts and executes the commands listed below. You only have to supply enough of each command to uniquely identify it.
Once a connection has been opened, telnet enters input mode. In this mode, it sends inputted text to the remote host. When telnet is in input mode, you must precede any commands with the telnet escape character (initially set to ↑[). When in command mode, telnet can interpret the normal terminal editing conventions.
This implementation is very simple because rlogin (1) is the standard mechanism used to communicate locally with hosts.
COMMANDS
open host [ port ] Open a connection to the named host. If the no port number is specified, telnet attempts to contact a TELNET server at the default port. The host specification may be either a host name or an Internet address specified in the “dot notation.” More information on host names is available in hosts (5).
close Close a TELNET session and return to command mode.
quit Close any open TELNET session and exit telnet.
z Suspend telnet. This command only works when you are operating under csh (1).
escape [ escape-char ] Set the telnet escape character. You can specify control characters as followed by a single letter; e.g., ↑X is a CONTROL-X.
status Show the current status of telnet, including the name of the remote host, as well as information concerning debugging.
options Toggle viewing of TELNET options processing. When options viewing is enabled, all TELNET option negotiations are displayed. Options sent by telnet are displayed as SENT, while options received from the TELNET server are displayed as RCVD.
crmod Toggle carriage return mode. When this mode is enabled, any carriage return characters received from the remote host map into a carriage return and a line feed. This mode does not affect characters that you type. Use this command if the host is one that requires you to do local echoing.
? [ command ] Get help. With no arguments, telnet prints a help summary. If a command is specified, telnet prints the help information available about the command only.