4
characters. Unless the buffer is full, all common characters that you enter
before pressing
Enter
are saved in the edit buffer.
Backspace
Deletes the character to the left of the cursor and moves the cursor back
one character.
Left arrow key (←) Moves the cursor one character to the left.
Right arrow key (→) Moves the cursor one character to the right.
Up arrow key (↑) Displays the previous command in the command history buffer.
Down arrow key (↓) Displays the next command in the command history buffer.
Tab
If you press
Tab
after entering part of a keyword, the system automatically
completes the keyword.
• If a unique match is found, the system displays the complete keyword.
• If there is more than one match, press Tab multiple times to pick the
keyword you want to enter.
• If there is no match, the system does not modify what you entered but
displays it again in the next line.
Entering a text or string type value for an argument
A text type argument value can contain printable characters except a question mark (?).
A string type argument value can contain any printable characters except for the following
characters:
Question mark (?).
Quotation mark (").
Backward slash (\).
Space.
A specific argument might have more requirements. For more information, see the relevant
command reference.
To enter a printable character, you can enter the character or its ASCII code in the range of 32 to 126.
Abbreviating commands
You can enter a command line quickly by entering incomplete keywords that uniquely identify the
complete command. In user view, for example, commands starting with an s include startup
saved-configuration and system-view. To enter the command system-view, you only need to
type sy. To enter the command startup saved-configuration, type st s.
You can also press Tab to complete an incomplete keyword.
Configuring and using command aliases
After you configure an alias for a command, you can enter the alias to execute the command. For
example, you can configure the alias siprt for the display ip routing-table command. Then, to
execute the command, you only need to enter siprt.
Usage guidelines
After you successfully execute a command by using its alias, the system saves the command,
instead of its alias, to the running configuration.