Basic Commands

This guide shows how to use the Command Line Interface (CLI), explains basic commands and how to interact with the Cisco IOS system.

Basic Navigation

After connecting to the Command Line Interface of a Cisco device there are two main modes of operation: User mode and privileged mode. User mode, also known as "user EXEC mode", is the mode a user enters when logging into a Cisco device. In this mode, the user has limited access to commands and can only perform basic tasks such as viewing the current configuration, status, and statistics. Privileged mode, also known as "privileged EXEC mode", is the mode a user enters after entering a command to switch from user mode to privileged mode. In this mode, the user has full access to all commands and can perform tasks such as configuring the device, modifying settings, and troubleshooting issues. To switch from user mode to privileged mode, the user must enter the "enable" command and then enter the enable password, if configured. While being in configuration mode, the user can use a variety of commands to configure the device. When the user finished making changes, he can use the "end" command to exit from the configuration mode and return to the privileged mode.

Description
Enter into privileged mode
Jump back to user mode
Open the global configuration mode
Exit from a sub-configuration menu back to a previous one
Exit from the configuration mode entirely
Close the connection to the device
CLI Commands
enable
disable
configure terminal
exit
end
logout
Switch

*******************************************************
* THIS IS A LAB ENVIRONMENT BY CONFIGURE-NETWORKS.COM *
*******************************************************
Switch>enable
Switch#disable
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#interface gi0/1
Switch(config-if)#exit
Switch(config)#interface gi0/2
Switch(config-if)#end
Switch#
*Jan 30 14:01:30.290: %SYS-5-CONFIG_I: Configured from console by console
Switch#logout

Keyboard Shortcuts

There are several keyboard shortcuts available for the Cisco Command Line Interface (CLI) to navigate and edit command lines more efficiently:

Description
Move the cursor to the beginning of the line
Move the cursor to the end of the line
Delete the word before the cursor
Delete the entire line before the cursor
Delete the entire line after the cursor
Auto-complete the current command or parameter
Display the previous command in the command history
Display the next command in the command history
Move the cursor left one character
Move the cursor right one character
Suspend a currently running operation
CLI Commands
Ctrl + A
Ctrl + E
Ctrl + W
Ctrl + U
Ctrl + K
Tab
Up arrow
Down arrow
Left arrow
Right arrow
Ctrl + Shift + 6

Premium Access

Log in or register - Premium members can access all content without restrictions.

Get Premium

0 Comments

Submit a Comment