close
Purpose
Closes active connect, Rlogin, and Telnet sessions; that is, sessions opened by connect, rlogin, or telnet commands.
The close” command is associated with the sessions displayed by the status command.
A close command issued without any options closes the current connection.
To issue the close command, you must escape the active session. Do this by pressing the escape key defined for your session type. The following table lists default escape keys.
Session Type |
Default Escape Keys |
Connect |
Ctrl+[+Enter |
Rlogin |
|
Telnet |
Ctrl+]+Enter |
Syntax
close [{*|connection number}]
Options
*
Closes all active sessions.
connection number
Identifies the session to close by its session number.
Examples
Close a session identified by number
#> close 1
Close the current session
#> close
Close all active sessions
#> close *
See also
- kill: The kill command has a broader effect than close, and lets you kill connections from the global list. That is, it is not limited to sessions associated with the current connection.
- status Use this command for information on displaying status information on active sessions.
- connect
- rlogin
- telnet