[Contents] [Prev] [Next] [Index] [Report an Error]

Command History Keys

The CLI maintains two separate command histories. The first command history maintains only 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 Exec mode.

Table 9 defines the keys related to command history. Arrow keys functions only on ANSI-compatible terminals, such as VT100s.

Table 9: Command History Keys

Key

Function

Up Arrow or Ctrl+p

Recalls commands in history buffer, starting with most recent command. Repeat key sequence to recall successively older commands.

Down Arrow or Ctrl+n

Returns to more recent commands in history buffer after recalling commands with Up Arrow or Ctrl+p. Repeat key sequence to recall successively more recent commands.

Ctrl+r

Begin a reverse search for a previously entered string in the history buffer by providing a character string when prompted. Enter Ctrl+r to continue searching. Ctrl+h or Del deletes the last character in the string and starts a search on the new string.


[Contents] [Prev] [Next] [Index] [Report an Error]