cc/td/doc/product/aggr/vpn5000/5000sw/conc52x/ref52x
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

show history

show history

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 history

Usage Guidelines

The 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.

VT100/ANSI Keypad Editing

Key Sequence 
Command Action 

Left Arrow

Cursor back one character

Right Arrow

Cursor forward one character

Down Arrow

Go forward in history

Up Arrow

Go backward in history to previous command

Backspace

Delete previous character

Delete

Delete previous character

Ctrl U

Erase line and start over

Ctrl C

Interrupt input

emacs-Style Editing

Key Sequence 
Command Action 

Ctrl A

Beginning of line

Ctrl B

Cursor back one character

Ctrl C

Interrupt input

Ctrl D

Delete forward character

Ctrl E

End of line

Ctrl F

Cursor forward one character

Ctrl H

Delete previous character

Ctrl K

Kill (delete) rest of line

Ctrl L

Redraw line

Ctrl N

Go forward to the next line

Ctrl P

Go backward to the previous line

Ctrl Q

Enter next character literally

Ctrl U

Erase line and start over

DEL

Same as Ctrl H

Related Commands

Command Description

edit config

Enters the text editor to edit the configuration file

help

Displays context-sensitive online help info


hometocprevnextglossaryfeedbacksearchhelp
Posted: Wed Sep 27 11:45:20 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.