Using The Command History; Recalling A Command - Cisco Nexus 5500 Series Configuration Manual

Nx-os fundamentals configuration guide, release 7.x
Hide thumbs Also See for Nexus 5500 Series:
Table of Contents

Advertisement

Understanding the Command-Line Interface
Commands
[lines]s
[lines]f
=
[count]/expression
[count]n
{! | :![shell-cmd]}
.

Using the Command History

The Cisco NX-OS software CLI allows you to access the command history for the current user session. You
can recall and reissue commands, with or without modification. You can also clear the command history.

Recalling a Command

You can recall a command in the command history to optionally modify and enter again.
This example shows how to recall a command and reenter it:
switch(config)# show cli history
0
11:04:07
1
11:04:28
2
11:04:39
3
11:05:13
4
11:05:19
5
11:05:25
switch(config)# !1
switch(config)# show interface ethernet 2/24
OL-30890-01
configure terminal
show interface ethernet 2/24
interface ethernet 2/24
no shutdown
exit
show cli history
Cisco Nexus 5500 Series NX-OS Fundamentals Configuration Guide, Release 7.x

Using the Command History

Description
Skips forward in the output for either the specified
number of lines or the current default number of lines
and displays a screen of lines. The default is 1 line.
Skips forward in the output for either the specified
number of screens or the current default number of
screens and displays a screen of lines. The default is
1 screen.
Displays the current line number.
Skips to the line that matches the regular expression
and displays a screen of output lines. Use the optional
count argument to search for lines with multiple
occurrences of the expression. This command sets
the current regular expression that you can use in
other commands.
Skips to the next line that matches the current regular
expression and displays a screen of output lines. Use
the optional count argument to skip past matches.
Executes the command specified in the shell-cmd
argument in a subshell.
Repeats the previous command.
69

Advertisement

Table of Contents
loading

Table of Contents