Command History
Table 28
Table 28
Command or Key Combination
Ctrl-P or the Up Arrow key
Ctrl-N or the Down Arrow key Returns to more recent commands in the history buffer after
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 29
Table 29
Command or Key Combination
Ctrl-Y
Esc, y
The Esc, y key sequence does not function unless the Ctrl-Y key combination is pressed first. If the
Note
Esc, y is pressed more than ten times, 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 combination.
Displaying Persistent CLI History
The Cisco IOS XR maintains the history buffer of CLI commands persistently across user sessions,
router switchover, and router reloads. This buffer not only provides a log of commands entered by
various users, but also lets you trace the activity of active users if the threshold limit of CPU usage is
exceeded. This command is useful for troubleshooting purposes.
To display the history of events corresponding to the CLI session open events, enter the show cli history
brief location command at the EXEC mode as follows:
RP/0//CPU0:router# show cli history brief location 0/RP0/CPU0
No.
--- --------------- --------------- -------------------- ---------- ------------
1
Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide
130
lists the commands or key strokes to use to recall commands from the history buffer.
Command History
Purpose
Recalls commands in the history buffer, beginning with the most
recent command. Repeat the key sequence to recall successively
older commands.
recalling commands with Ctrl-P or the Up Arrow key. Repeat the
key sequence to recall successively more recent commands.
identifies the keystroke combinations used to recall deleted entries to the command line.
Keystroke Combinations to Recall Deleted Entries
Recalls
Most recent entry in the buffer (press the keys simultaneously).
Previous entry in the history buffer (press the keys sequentially).
Username
-
Line
IPAddress
-
Chapter
CLI Tips, Techniques, and Shortcuts
Client
-
-
Thu Jun 11e
t
OL-28417-02