close

Use the close command to close active sessions, including telnet, rlogin and connect sessions. Normal users and administrators (root) can issue the close command. 

Note: You must escape from the active session to command mode to enter the close command. Do this by choosing the escape key defined for your session type. The escape keys are defined by the ConnectEsc, TelnetEsc and RLoginEsc options of the set users command. 

Command Syntax

Enter the close command as shown below. If no argument is given, the current session is closed, by default.

close [* | connection_number]

Command Fields

Command Field

Description

*

Specifies that all active sessions be closed.

connection_number

Identifies the session to close.

Command Example

In this example, the close command closes session 2.

close 2