liveBook · Manning

Command-line interface

As explained in Acing the CCNA Exam: Volume 1 Fundamentals and Protocols

A command-line interface is a text-based interface through which a user controls and interacts with a device by entering commands.

A command-line interface (CLI) is a text-based shell for controlling and interacting with a device by entering commands. Cisco routers and switches use the Cisco IOS CLI for configuration, verification, and operational tasks. section 5.1 section 5.1.1

Distinguish the CLI from related interfaces and access methods:

  • A graphical user interface uses graphical controls; a CLI uses lines of text entered as commands. section 5.1.1
  • Access a Cisco CLI locally through the console port or remotely over the network with Telnet or Secure Shell (SSH). section 5.1.2
  • Use a terminal emulator, such as PuTTY, after connecting a computer to the console port. section 5.1.2
  • Treat the console connection as local configuration access: it requires physical proximity and does not communicate over the network. section 5.1.2

Moving through Cisco IOS modes

After connecting, the CLI starts in user EXEC mode, shown by a prompt such as hostname>. Enter enable to reach privileged EXEC mode, shown as hostname#. Enter configure terminal to reach global configuration mode, shown as hostname(config)#. Use hostname to change the device name, no before a command to undo it, and end, exit, Ctrl-C, or Ctrl-Z to return toward privileged EXEC mode. section 5.5

Editing and repeating commands

Correct a command without retyping it: use the left and right arrows to move the cursor, Backspace to delete, Ctrl-A or Ctrl-E to jump within the line, and the Up arrow to recall an earlier command. section 5.2.3

Figure 5.2 The Command Prompt CLI of a Windows PC, accessed from within the Windows shell GUI

Compare a familiar Windows Command Prompt with the text-based interaction model used by device CLIs. section 5.1.1

How Acing the CCNA Exam: Volume 1 Fundamentals and Protocols covers it

How deep it goes
Explains interface types, access methods, IOS modes, prompts, commands, and shortcuts, while deferring detailed protocol configuration.
Examples
Uses Windows Command Prompt, Cisco IOS prompts, PuTTY console access, command history, and keyboard editing shortcuts.
What it assumes
Teaches shell and CLI fundamentals from zero while assuming only the ability to connect a computer to a Cisco device.
What you can do after
Operate Cisco IOS CLI sessions, move between modes, enter configuration commands, and correct or repeat commands.
How it connects
Connects shells with graphical user interfaces, terminal emulators, console ports, Telnet, Secure Shell, and Cisco IOS modes.

Also explained in

Compare how 9 books explain command-line interface →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 1 Fundamentals and Protocols. The section links point to the parts of the book it draws on.