Understanding the Command-Line Interface
Exiting a Configuration Command Mode
Procedure
Step 1
Step 2
Step 3
Command Mode Summary
This table summarizes information about the main command modes.
Command or Action
exit
Example:
switch(config-if)# exit
switch(config)#
end
Example:
switch(config-if)# end
switch#
Ctrl-Z
Example:
switch(config-if)# ^Z
switch#
Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 7.x
Exiting a Configuration Command Mode
Purpose
Exits from the current configuration command mode and
returns to the previous configuration command mode.
Exits from the current configuration command mode and
returns to EXEC mode.
(Optional)
Exits the current configuration command mode and returns to
EXEC mode.
If you press Ctrl-Z at the end of a command line
Caution
in which a valid command has been typed, the CLI
adds the command to the running configuration
file. In most cases, you should exit a configuration
mode using the exit or end command.
47