Basic Prompts
The prompt that you see will tell you exactly where you are and what type of privileges you have in the device. You can read about user levels here http://ciscoccent.blogspot.com/2013/10/user-levels.html but there is a little more to it.
The prompt I find myself working in most often is the Privileged Exec - this is where you'll verify much of the configuration and troubleshooting. It is always displayed as hostname#
When you are adding, removing, or editing most types of configurations you'll be in the Global Configuration mode and it is always displayed as hostname(config)#
Shortcut Keys
Like every piece of software, Cisco has a few shortcut keys that will save you a lot of time over your career of configuring their equipment.
- ←/ → Move the cursor back or forward one space
- ↑ Scroll backward through previously entered commands - mode sensitive
- ↓ Scroll forward through command history
- Ctrl+A Move cursor to beginning of line
- Ctrl+E Move cursor to end of line
- Ctrl+L Reprint the current line
- Ctrl+U Erases the line
- Ctrl+W Erases the previous word
- Ctrl+K Erase characters following the current cursor position
- Ctrl+X Erase all characters preceding the current cursor position
- Ctrl+C Exit configuration mode (goes to Privileged Exec)
- Ctrl+Shift+6 Aborts the current command - helpful for time intensive things such as IP Domain Lookup (acts like a ctrl+c does in Windows CLI)
Shortcut keys for commands
- TAB completes a partial word
- ? shows potential commands that begin with the preceding letter(s)
- Uses:
- en? displays all commands currently available in your location that begin with the letters "en"
- enable ? displays available commands that can follow "enable" and also generates information regarding what the following syntax is
- This image walks you through the first use of the "?" as displayed above and demonstrates using it to query what the next part of the command should be as explained in the second use - this is a powerful tool that you should become very familiar with unless you have the world's most impressive memory.