exit

This topic explains the command that returns to the parent command mode or closes the CLI session from User EXEC mode.

Syntax

exit

Parameter

None.

Default

No default value.

Mode

  • User EXEC
  • Privileged EXEC
  • Global Configuration
  • VLAN Configuration
  • Interface Configuration
  • Interface Range Configuration
  • Line Configuration

Usage

In User EXEC mode, the exit command closes the current CLI session. In other modes, the exit command lets you return to the parent mode. Each mode lets you enter the exit command. The following list describes the relationships between each mode.

User Exec
None
Privileged EXEC
User Exec
Global Configuration
Privileged EXEC
VLAN Configuration
Global Configuration
Interface Configuration
Global Configuration
Interface Range Configuration
Global Configuration
Line Configuration
Global Configuration

Example

This example shows how to enter Privileged EXEC mode and then use the exit command to return to User EXEC mode:

CODE
Switch> enable
Switch# exit
Switch>