Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Supported Platforms

 

Related Documentation

 

history

Syntax

history

<!n>

Release Information

Command supported by Junos OS Release 9.1 and later.

Description

(JCS management module CLI) Display the last eight commands entered. You can use this list to reenter commands. To reenter a command, use the history command to display a list of recent commands, then type an exclamation point (!) followed by the number of the command you wish to reenter.

Options

!n—(Optional) Reenter a command from the history list. Replace n with a value of 0 through 7 to indicate the number of the command you wish to reenter.

Required Privilege Level

operator

 

Related Documentation

 

List of Sample Output

history (Listing)
history (Reentering a Command)

Output Fields

When you enter this command, you are provided feedback on the status of your request.

Sample Output

history (Listing)

system:mm[1]> history
0 dns
1 dns —on
2 dns
3 dns —i1 192.168.70.29
4 dns
5 dns —i1 192.168.70.29 —on
6 dns
7 history

history (Reentering a Command)

system:mm[1]> !2
Enabled
-i1 192.168.70.29
-12 0.0.0.0
-i3 0.0.0.0

Published: 2013-07-16

Supported Platforms

 

Related Documentation

 

Published: 2013-07-16