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

Nx-os fundamentals configuration guide
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Understanding the Command-Line Interface
Commands
[lines]d or [lines]Ctrl+shift+D
q or Q or Ctrl-C
[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.
Description
Scrolls through output lines for either the specified
number of lines or the current default number of lines.
The initial default is 11 lines. If you use the optional
lines argument, that value becomes the new default
number of lines to display for this command.
Exits the --More–- prompt.
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.
Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 7.x
Using the Command History
69

Advertisement

Table of Contents
loading

Table of Contents