Abbreviating Commands - Cisco AS5350XM Configuration Manual

Universal gateways software configuration guide
Hide thumbs Also See for AS5350XM:
Table of Contents

Advertisement

Using the Command-Line Interface in Cisco IOS and Cisco IOS XE Software

Abbreviating Commands

Typing a complete command name is not always required for the command to execute. The CLI
recognizes an abbreviated command when the abbreviation contains enough characters to uniquely
identify the command. For example, the show version command can be abbreviated as sh ver. It cannot
be abbreviated as s ver because s could mean show, set, or systat. The sh v abbreviation also is not valid
because the show command has vrrp as a keyword in addition to version. (Command and keyword
examples from Cisco IOS Release 12.4(13)T.)
Using Aliases for CLI Commands
To save time and the repetition of entering the same command multiple times, you can use a command
alias. An alias can be configured to do anything that can be done at the command line, but an alias cannot
move between modes, type in passwords, or perform any interactive functions.
Table 4
Table 4
Command Alias
h
lo
p
s
u or un
w
To create a command alias, issue the alias command in global configuration mode. The syntax of the
command is alias mode command-alias original-command. Following are some examples:
Press Ctrl-N or the down arrow key—Recalls the most recent commands in the history buffer after
they have been recalled using Ctrl-P or the up arrow key. Repeat the key sequence to recall
successively more recent commands.
Note
The arrow keys function only on ANSI-compatible terminals such as the VT100.
Issue the show history command in user EXEC or privileged EXEC mode—Lists the most recent
commands that you entered. The number of commands that are displayed is determined by the
setting of the terminal history size and history commands.
The CLI command history feature is enabled by default. To disable this feature for a terminal
session, issue the terminal no history command in user EXEC or privileged EXEC mode or the
no history command in line configuration mode.
shows the default command aliases.
Default Command Aliases
Router(config)# alias exec prt partition—privileged EXEC mode
Router(config)# alias configure sb source-bridge—global configuration mode
Router(config)# alias interface rl rate-limit—interface configuration mode
Original Command
help
logout
ping
show
undebug
where
Using the CLI
ix

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

As5400xm

Table of Contents