This command displays the last eight commands that were entered, allowing the user to choose and re-enter one of these commands.
You choose the command to re-enter from the displayed list by typing an exclamation point (!) followed immediately by the numeric designation the command is assigned in the list. You can also recall one of the past eight previously entered commands using the up-arrow and down-arrow keys.
If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or history command errors for a list of error messages that are specific to the history command.
Function | What it does | Command | Target (see paths in Command targets) |
---|---|---|---|
Command history | Displays the last eight commands that were entered. | history | Any installed device. |
Re-enter previous command using numeric designation | Re-enters a numerically-specified command from the command history. | ! x where x is the number of the command (0 - 7) to re-enter from the command history list. |
Any installed device. |
history
!2
The following example shows the information that is returned from these two commands:
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 system:mm[1]> !2 Enabled -i1 192.168.70.29 -i2 0.0.0.0 -i3 0.0.0.0 system:mm[1]>