Using Command Line Editing
This section provides information about the command line editor.
Basic Editing
Here are a few basic command line editing notes:
- Case - Keywords are not case sensitive; that is, they can be entered in uppercase, lowercase, or a mix of both. Filenames may be case sensitive. Local filenames are case sensitive; remote filenames are case sensitive if the host system treats filenames as case sensitive. Passwords are case sensitive.
- Abbreviating keywords - You may abbreviate keywords using as few characters as you want, as long as the characters provide a unique abbreviation.
- Executing a command - Always use the <Enter> key.
Command Line Editing Keys
You can use several keys to edit the command line. Table 2-2 defines the keys for editing the command line.
Table 2-2 Command line editing keys
Left Arrow1 Right Arrowa
Command History Keys
The CLI maintains two separate command histories. The first command history maintains only User Exec and Privileged Exec mode commands. The second history maintains all commands entered in any of the configuration modes. The appropriate history will automatically be restored as you transition between Global Configuration mode and Privileged Exec mode.
Table 2-3 defines the keys related to command history.
Table 2-3 Command history keys
Up Arrow1 or Ctrl+P Down Arrowa or Ctrl+N
Pagination Keys
If the system needs to display more text than you can fit on the screen, the output pauses and the --More-- prompt appears. Table 2-4 defines the pagination keys that you can use when the --More-- prompt appears. See The - - More - - Prompt section earlier in this chapter for more information.
Table 2-4 Pagination keys