6-17
Cisco IOS XR Getting Started Guide
OL-10957-02
Chapter6 CLI Tips, Techniques, and Shortcuts
Command History
sho config commit changes 1000000001
show history
Recalling Previously Entered Commands
The CiscoIOS XR software records the ten most recent commands issued from the command line in its
history buffer. This feature is particularly useful for recalling long or complex commands or entries,
including access lists.
To recall commands from the history buffer, use one of the commands or key combinations listed in
Table 6 -6.
Table6-6 Command History
Recalling Deleted Entries
The Cisco IOS XR CLI also stores deleted commands or keywords in a history buffer. The buffer stores
the last ten items that have been deleted using Ctrl-K, Ctrl-U, or Ctrl-X. Individual characters deleted
using Backspace or Ctrl-D are not stored.
Table 6 -7 identifies the keystroke combinations used to recall deleted entries to the command line.
Table6-7 Keystroke Combinations to Recall Deleted Entries
Note The Esc, Y key sequence does not function unless the Ctrl-Y key comb ination is pressed first. If the
Esc, Y is pressed more than tentimes, the history cycles back to the most recent entry in the buffer.
Redisplaying the Command Line
If the system sends a message to the screen while a command is being entered, the current command line
entry can be redisplayed using the Ctrl-L or Ctrl-R key combi nation.
Command or Key Combination Purpose
Ctrl-P or the up arrow key Recalls commands in the history buffer, beginning with the most recent
command. Repeat the key sequence to recall successively older commands.
Ctrl-N or the down arrow key Returns to more recent commands in the hist ory buffer after recalling
commands with Ctrl-P or the up arrow key. Repeat the key sequence to recall
successively more recent commands.
Command or Key Combination Recalls the
Ctrl-Y Most recent entry in the buffer (press the keys simultaneously).
Esc, Y Previous entry in the history buffer (press the keys sequentially).