Re-Executing Commands; Redisplaying Commands - Fujitsu XG0224 User Manual

Hide thumbs Also See for XG0224:
Table of Contents

Advertisement

XG Series User's Guide

Re-executing commands

You can enter a history specifier at the beginning of the command string to re-execute the command. The command will be
executed after the command string for re-execution is displayed. In addition, command history and history numbers can be
viewed with the history command. Note that you can enter the history specifier only once at the beginning of the command
line. Any history specifiers entered thereafter will be treated as normal characters.
History specifier
!!
! history number
!-number in history
! string
When you enter a string following the history specifier, it will be added to end of the command string invoked from the
history.
The following shows an example.
Command
# show ip route
(The execution results of show ip route are displayed.)
#
all
!!
show ip route all
(The execution results of show ip route all are displayed.)

Redisplaying commands

You can redisplay a previously run command by entering a display specifier (:p) following a history specifier. Note that the
displayed command is not re-executed yet.
Since the displayed command string is recorded as a new command history item, you can re-execute it by entering !! after
checking the command string.
Display specifier
:p
When you enter a string following the display specifier, it will be added to end of the command string invoked from the
history.
A command execution example is shown below.
Command
# show ip route
(The execution results of show ip route are displayed.)
# !!:p all
show ip route al
# !!
show ip route all
(The execution results of show ip route all are displayed.)
Re-execute the last command run.
Re-execute the command with the specified history number.
Re-execute the command run the specified number of commands before in the history.
Ex.) !-3 (The third command from the newest in the history is re-executed.)
The last run command beginning with the specified string is re-executed.
Ex.) !net (The last run command beginning with "net" is re-executed.)
(Add "all" to the last command and execute it.)
(Display the command string to re-execute.)
Redisplays a command.
Ex.) !net:p (The last run command beginning with "net" is redisplayed.)
(Add "all" to the last command executed and display it.)
(Display the command string.)
(Re-execute the previous command.)
(Display the command string to re-execute.)
Operation
Operation
49
Chapter 2 Using the CLI
Using the CLI

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xg0448Xg2600Xg0440dcXg0440dcr

Table of Contents