enable cli history expansion
Performs command line history expansion similar to the Linux shell.
|cli||Command line interface settings.|
|history||Command history settings.|
|expansion||Substitute occurrences of '!n:w' with the corresponding line 'n' and word 'w+1' from command history (default disabled).|
|session||Configures history expansion for this CLI session only (default ).|
|permanent||Configures history expansion for this CLI session, and all future sessions.|
CLI history expansion is disabled by default. If not specified when enabling, CLI history expansion is enabled for the current session only.
The history expansion character ‘!‘ can be used to specify command from the history that is substituted into the command line. All occurrences of the form “!n:w” in the command are replaced with the w‘th word from the n'th line in the command history. Specification of the word is optional.
# show !58:1 Error: History event not found. If you were not attempting a history expansion using the format '!n:w', and believe the command to be valid, please retry the command after 'disable cli history expansion'.
To view the status of CLI history expansion on the switch, use the show management command.
The following command enables CLI history expansion for this session and all future sessions:
enable cli history expansion permanent
This command was first available in ExtremeXOS 32.2.
This command is available on ExtremeSwitching 5320, 5420, 5520, and 5720 series switches.