Use it when learning the IOS CLI, or when a command is rejected because you are in the wrong mode.
Navigation
IOS/IOS XE CLI navigation moves between user EXEC (>), privileged EXEC (#, via enable) and configuration modes (configure terminal, then interface/router sub-modes); exit, end and Ctrl-Z move back up.
1. Navigation: modes, help (?), Tab completion, abbreviations, output filters.
2. do runs EXEC commands from config mode.
3. end/Ctrl+Z returns to privileged EXEC.
4. Filters: include, exclude, begin, section.
5. terminal length 0 for full captures.
user EXEC → privileged EXEC → global config → interface config
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
enablePrimary Commands
Configuration and operational commands for this Topic.
enableReferenceEnter privileged EXEC mode.
Use when: Use at the IOS / IOS XE Fundamentals boundary after prerequisite state is verified.
Quick note: Operational guidance. A command accepted by the parser does not prove feature support, correct scope, persistence or desired forwarding behavior.
Cisco IOS / IOS XE · mixedconfigure terminalConfigureEnter global configuration mode.
Use when: Use at the IOS / IOS XE Fundamentals boundary after prerequisite state is verified.
Quick note: Operational guidance. A command accepted by the parser does not prove feature support, correct scope, persistence or desired forwarding behavior.
Cisco IOS / IOS XE · mixed · configuresdisableReferenceLeave privileged EXEC mode and return to user EXEC mode.
Use when: Use at the IOS / IOS XE Fundamentals boundary after prerequisite state is verified.
Quick note: Operational guidance. A command accepted by the parser does not prove feature support, correct scope, persistence or desired forwarding behavior.
Cisco IOS / IOS XE · mixedinterface <interface>ReferenceEnter interface configuration mode.
Use when: Use at the IOS / IOS XE Fundamentals boundary after prerequisite state is verified.
Quick note: Operational guidance. A command accepted by the parser does not prove feature support, correct scope, persistence or desired forwarding behavior.
Cisco IOS / IOS XE · mixedinterface range <interfaces>ReferenceConfigure several interfaces at once.
Use when: Use at the IOS / IOS XE Fundamentals boundary after prerequisite state is verified.
Quick note: Operational guidance. A command accepted by the parser does not prove feature support, correct scope, persistence or desired forwarding behavior.
Cisco IOS / IOS XE · mixedexitReferenceLeave the current configuration mode and go up one level.
Use when: Use at the IOS / IOS XE Fundamentals boundary after prerequisite state is verified.
Quick note: Operational guidance. A command accepted by the parser does not prove feature support, correct scope, persistence or desired forwarding behavior.
Cisco IOS / IOS XE · mixedendReferenceReturn directly to privileged EXEC mode from any configuration mode.
Use when: Use at the IOS / IOS XE Fundamentals boundary after prerequisite state is verified.
Quick note: Operational guidance. A command accepted by the parser does not prove feature support, correct scope, persistence or desired forwarding behavior.
Cisco IOS / IOS XE · mixedVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification and output interpretation Verify boundary
Verify the prompt/mode, use show running-config or scoped show commands to confirm resulting state, and distinguish leaving a submode with exit from returning directly to privileged EXEC with end. Prefer read-only canonical commands first and preserve exact software release, hardware identity and configuration scope in copied evidence. Compare active state with intended state and, where persistence matters, compare running and startup sources. For a claim about forwarding or protocol behavior, follow the configuration evidence with the corresponding operational table rather than stopping at configuration text.
- User EXEC, privileged EXEC, global and subconfiguration modes have different scope
- Running-config is active state; startup-config is boot input
- IOS XE separates a Linux-based platform and modular processes from the IOS CLI experience
- Syntax and feature support remain model, license and release specific.
show history— recent commandsterminal length 0— no paging for capturesshow running-config | include <text>— filter output
ReferenceWhy it matters1 section · depth on demand
When to use it
Use it to navigate safely, distinguish configuration from observation, and capture the exact platform and release before applying syntax.
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
Navigating the IOS XE CLI
The CLI is fast once its navigation aids are familiar. Cisco's IOS XE CLI fundamentals guide documents them: ? for context-sensitive help (with or without a space), Tab completion, unique abbreviations, a command history (10 lines by default) recalled with the Up arrow or Ctrl-P, and editing keys for moving and deleting within a line.
Moving between modes (CLI guide)
| From | Command | To |
|---|---|---|
| User EXEC | enable | Privileged EXEC |
| Privileged EXEC | configure terminal | Global configuration |
| Global configuration | interface <type> <number> | Interface configuration |
| Any configuration mode | exit | One level up |
| Any configuration mode | end or Ctrl-Z | Privileged EXEC |
| Privileged EXEC | disable | User EXEC |
Help and completion (CLI guide)
| Input | Result |
|---|---|
? | Commands in the current mode |
sh? (no space) | Commands starting with "sh" |
show ip ? (with space) | Next keywords or arguments |
<cr> in help output | Command is complete; press Enter |
| Tab | Completes a partial keyword |
Editing keys (CLI guide)
| Key | Action |
|---|---|
| Ctrl-A / Ctrl-E | Start / end of line |
| Ctrl-U | Delete to start of line |
| Ctrl-K | Delete to end of line |
| Ctrl-W | Delete word to the left |
| Ctrl-P / Up arrow | Previous command |
R1# show ip int?
interface
R1# show ip interface ?
Async Async interface
GigabitEthernet GigabitEthernet IEEE 802.3z
brief Brief summary of IP status and configuration
R1# show ip interface brief | exclude unassigned
R1# show running-config | begin router ospf
R1(config-if)# do show ip interface brief
R1# terminal length 0
R1# show history
do runs an EXEC command from configuration mode; terminal length 0 turns off paging for the session.
Paging (CLI guide)
At a --More-- prompt, /regex searches forward, +regex shows matching lines and -regex hides them; Ctrl-Z stops the output.
Documented example, not captured output.
Quick reference
IOS / IOS XE navigation uses a hierarchy of modes: user EXEC (>) for basic checks, privileged EXEC (#) for full show and debug, global configuration ((config)#) and sub-modes for interfaces, routing and lines.
| Key/command | Use |
|---|---|
enable / disable | Enter/leave privileged EXEC |
configure terminal | Global configuration |
exit / end / Ctrl+Z | Up one level / back to EXEC |
? | Context help |
| Tab | Complete command |
do show ... | Run EXEC commands from config mode |
Output filters include, section, begin | Filter long output after a pipe |
Commands can be abbreviated to the shortest unique prefix (sh ip int br).
Architecture/protocol mechanics and state model
IOS/IOS XE CLI navigation is a hierarchy of EXEC and configuration modes; the prompt and current mode determine which commands are valid and whether a command changes running state. Cisco IOS/IOS XE reference work should keep parser context, active running state, persistent startup state and device runtime state as separate concepts. Commands can be syntactically valid in one mode and invalid or semantically different in another. A useful reference records the exact prompt/mode and distinguishes observation commands from state-changing commands, because the CLI itself is an interface to multiple subsystems rather than a single flat shell.
Limits and common misconceptions
Being at a privileged prompt shows only authorization to run commands, but it does not show saved configuration, device health or that a previous change persists across reload. CLI state, stored configuration, software image, hardware inventory and service health are different evidence layers. The site should make those boundaries explicit and leave live fault synthesis to ChatGPT. Exact output fields and some defaults vary by platform/release, so generic Cisco references should retain version context whenever a feature claim depends on it.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration intent
Treat mode transitions as an operational boundary: privileged EXEC is normally the observation/administration context, while global and subconfiguration modes change the active running configuration. Configuration intent should be reviewable before and after change. Capture the relevant current state, make the smallest scoped change, verify the resulting runtime behavior and decide explicitly whether persistence across reload is intended. Avoid equating command acceptance with technical success, and avoid saving unrelated changes simply because the device has unsaved configuration.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IOS / IOS XE Fundamentals → Navigation. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%Official Cisco CLI-mode and navigation reference reviewed for. Verification covers the reference concepts represented by this Topic; deployment-specific runtime behavior still requires local evidence.
Basis: https://www.cisco.com/c/en/us/td/docs/ios/ios_xe/fundamentals/configuration/guide/2_xe/cf_xe_book/cf_cli-basics_xe.pdf · confidence 92%Quick lookup tables
Navigation · operational reference
Compact state/design/evidence reference for fast lookup.
| Context | Purpose | Key boundary |
|---|---|---|
User EXEC > | Limited observation | Not configuration mode |
Privileged EXEC # | Operational/admin commands | Still not config mode |
Global config (config)# | System configuration | Changes running state |
| Submode | Feature/interface scope | Scope controls command meaning |