Chapter 3. Command Reference
!
access: global; all
The ! command executes a command in the history buffer. Use !! to repeat the previous command executed.
! #
indicates an item number in the history buffer. Use ! # to execute command # in the history buffer. See “execute command <number> from history buffer” on page 83 for an example.
alias
access: global; all
The alias command lists defines abbreviated commands. The command accepts an alias and the string that the alias will represent.
The character string that you will type instead of the full command string. It must be a unique combination of letters, numbers, and hyphens or underscores.
A text string that is either a valid CLI command or part of a command. If the string contains blanks, you must enclose the string in quotes.
Using the alias command
create a new Enter the alias command with an alias name and a command string enclosed in quotes. alias
hostname# alias eth "ethernet"
show aliases Enter the alias command without any parameters to show a list of currently defined aliases.
hostname# alias
ethethernet
28 X Family CLI Reference V 2.5.1