EasyManua.ls Logo

Cisco Nexus 5500 Series - Controlling CLI History Recall; Configuring the CLI Edit Mode; Displaying the Command History

Cisco Nexus 5500 Series
160 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
You can also use the Ctrl-P and Ctrl-N keystroke shortcuts to recall commands.
Controlling CLI History Recall
You can control the commands that you recall from the CLI history using the Ctrl-P and Ctrl-N keystroke
shortcuts. Cisco NX-OS software recalls all commands from the current command mode and higher command
modes. For example, if you are working in global configuration mode, the command recall keystroke shortcuts
recall both EXEC mode and global configuration mode commands.
Configuring the CLI Edit Mode
You can recall commands from the CLI history using the Ctrl-P and Ctrl-N keystroke shortcuts and edit
them before reissuing them. The default edit mode is emacs. You can change the edit mode to vi.
SUMMARY STEPS
1.
[no] terminal edit-mode vi [persist]
DETAILED STEPS
PurposeCommand or Action
Changes the CLI edit mode to vi for the user session. The persist
keyword makes the setting persistent across sessions for the current
username.
[no] terminal edit-mode vi [persist]
Example:
switch# terminal edit-mode vi
Step 1
Use the no to revert to using emacs.
Displaying the Command History
You can display the command history using the show cli history command.
The show cli history command has the following syntax:
By default, the number of lines displayed is 12 and the output includes the command number and timestamp.
The example shows how to display default number of lines of the command history:
switch# show cli history
The example shows how to display 20 lines of the command history:
switch# show cli history 20
The example shows how to display only the commands in the command history without the command number
and timestamp:
switch(config)# show cli history unformatted
Cisco Nexus 5500 Series NX-OS Fundamentals Configuration Guide, Release 7.x
70 OL-30890-01
Understanding the Command-Line Interface
Controlling CLI History Recall

Table of Contents

Other manuals for Cisco Nexus 5500 Series

Related product manuals