Use the enable user EXEC command to enter the Privileged EXEC Mode.
Syntax
enable [privilege-level]
privilege-levelPrivilege level required to enter the system (Range: 1-15).
Default Configuration
The default privilege level is 15.
Command Mode
User EXEC Mode
User Guidelines
There are no user guidelines for this command.
Examples
The following example shows how to enter privileged mode:
Console> enable
enter password:
Console#
disable
Use the disable privileged EXEC command to return the prompt to User EXEC Mode.
Syntax
disable [privilege-level]
privilege-levelPrivilege level required to enter the system (Range: 1-15).
Default Configuration
The default privilege level is 1.
Command Mode
Privileged EXEC Mode
User Guidelines
There are no user guidelines for this command.
Examples
The following example shows how to return to User EXEC Mode.
Console# disable
Console>
login
Use the login privileged EXEC command to exit the EXEC mode and log on again.
Syntax
login
Default Configuration
This command has no default configuration.
Command Mode
Privileged EXEC Mode
User Guidelines
There are no user guidelines for this command.
Examples
The following example displays how to exit the EXEC mode and log on again.
Console > enable
Console#
Console# login
Console>
exit(configuration)
Use the exit command to exit any configuration mode and enter the next highest mode in the CLI mode hierarchy.
Syntax
exit
Default Configuration
This command has no default configuration.
Command Mode
All command modes
User Guidelines
There are no user guidelines for this command.
Examples
The following example changes the configuration mode from Interface Configuration Mode to User EXEC Mode.
Console(config-if)# exit
Console(config)# exit
Console#
exit(EXEC)
Use the exit user EXEC command to close an active terminal session by logging off the device.
Syntax
exit
Default Configuration
This command has no default configuration.
Command Mode
User EXEC Mode
User Guidelines
There are no user guidelines for this command.
Examples
The following example closes an active terminal session.
Console> exit
end
The end global configuration mode command returns the command mode to Privileged Mode.
Syntax
end
Default Configuration
This command has no default configuration.
Command Mode
All command modes
User Guidelines
There are no user guidelines for this command.
Examples
The following example returns the command mode to Privileged Mode.
Console (config-if)# end
Console #
help
Use the help command to display a brief description of the help system.
Syntax
help
Default Configuration
This command has no default configuration.
Command Mode
All command modes
User Guidelines
There are no user guidelines for this command.
history
Use the history line configuration command to enable the command history function. To disable the command history feature, use the no form of this command.
Syntax
history
no history
Default Configuration
The history function is enabled.
Command Mode
Line Configuration Mode
User Guidelines
There are no user guidelines for this command.
Examples
The following example enables the command history function.
Console (config-line)# history
history size
Use the history size line configuration command to set the command history buffer size for a particular line. To reset the command history buffer size to the default, use the no form of this command.
Syntax
history size number-of-commands
no history size
number-of-commandsNumber of commands that the system records in its history buffer (Range: 0-256).
Default Configuration
The default history buffer size is 10.
Command Mode
Line Configuration Mode
User Guidelines
There are no user guidelines for this command.
Examples
The following example changes the command history buffer size to 100 entries for a particular line.
Console (config-line)# history size 100
debug-mode
The debug-mode privilege EXEC command switches the mode to debug.
Syntax
debug-mode
Default Configuration
This command has no default configuration.
Command Mode
Privilege EXEC Mode
User Guidelines
There are no user guidelines for this command.
Examples
The following example enables the debug command interface.
console# debug
>debug
Enter DEBUG Password: *****
DEBUG>
show history
Use the show history privileged EXEC command to list the commands entered in the current session.
Syntax
show history
Default Configuration
This command has no default configuration.
Command Mode
Privilege EXEC Mode
User Guidelines
The command in the buffer also includes commands that were not executed.
The commands are listed from the first to the latest command.
The buffer remains unchanged when entering the configuration mode and returning back.
Examples
The following example displays the all commands entered while in the current Privileged EXEC Mode.
Console# show history
Console# show version
Console# show clock
Console# show history
show privilege
Use the show privilege privileged EXEC command to display the current privilege level.
Syntax
show privilege
Default Configuration
This command has no default configuration.
Command Mode
Privilege EXEC Mode
User Guidelines
There are no user guidelines for this command.
Examples
The following example displays the current privilege level.