Prefix Prompt
You can set the CLI to display the current command prefix as the command prompt by entering the following command:
After entering this command, your command prompt will include current stored prefix information until a new prompt is specified. For example, the following is a prompt for a user who has begun configuring VLAN 32:
To set the prompt back to the default arrow (
prompt string
Command History
You can view a list of up to 30 of the most recently executed commands via the show history command. For example:
2 show fan
3 show sensor
4 show temperature
5 ip load dvmrp
6 show arp
7 show cmm
8 show fan
9 show sensor
10 show temperature
11 ip load dvmrp
12 show arp
13 show history
Note that the most recent commands are displayed lower in the list. For this reason, the show history command will always be listed last.
You can recall commands from the history list by entering an exclamation point ( ! ). For example:
The CLI prints the fourth command from the history list (in this case, show temperature) at the CLI prompt.
You can also recall the last command in the history list by entering two exclamation points ( !! ). For example:
To specify the number of commands displayed in the history list (1 - 30), use the history size command. For example:
To view the current history list settings, use the show history parameters command. For example:
Index Range:
32 CLI Basics | March 2005 |