|
|
The show history command is used to display the last commands entered in the current command loop session. The command history is displayed from the oldest command to the newest command.
The command history has room for 650 bytes of command history, or about 40 commands. When the buffer fills up, older commands are removed to make room for more recent ones. All commands stored in the buffer are displayed by the show history command.
show historyThe command loop parser supports command line editing. By using this mechanism, whole commands from the history buffer can be retrieved, or a complex set of commands can be retrieved and modified to eliminate most retyping.
The edit config command has two separate history buffers: one for editor commands and another for text input using the append command. There is no way to display the history in these buffers, but the complete editing functionality described below is supported.
On a VT100 or ANSI terminal, the up and down keyboard arrow keys may be used to scroll through the history buffer. The left and right arrow keys may be used to move the cursor position on the current command. Keyboard input will be inserted at the position of the cursor, pushing the rest of the command to the right. There is no overstrike mode. Characters to the left of the cursor may be deleted by pressing either the delete or backspace key. An entire line may be deleted by entering a <CTRL-U> or <CTRL-C>.
A more powerful "emacs" style of editing is also available for users without access to compatible arrow keys or users who are familiar with emacs or other emacs-style command line implementations. The command search functions <CTRL-S> and <CTRL-R> are not implemented.
A complete summary of valid commands for both styles is listed below. Both editing styles are active and recognized at the command prompt.
![]() |
Note Entering passwords, input to other command prompts, and input to subcommands will not show up in the command history. Incorrect and partial input will show up. |
Key Sequence | Command Action |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Key Sequence | Command Action |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Command | Description |
|---|---|
edit config | Enters the text editor to edit the configuration file |
help | Displays context-sensitive online help info |
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Wed Sep 27 11:45:20 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.