HP MSR2000/3000/4000 Router Series Fundamentals Configuration Guide
4
Editing a command line
To edit a command line, use the keys listed in Table 1 or the hotkeys listed in Table 2. When you are
finished, you can press Enter to execute the command.
Table 1 Command line editing keys
Ke
y
s Function
Common keys
If the edit buffer is not full, pressing a common key inserts a character at the
position of the cursor and moves the cursor to the right. The edit buffer can
store up to 511 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 (
↑
) Gets the previous history command.
Down arrow key (
↓
) Gets the next history command.
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 string or text type value for an argument
Generally, a string type argument value can contain any printable character (in the ASCII code range of
32 to 126) other than the question mark (?), quotation mark ("), backward slash (\), and space, and a
text type argument value can contain any printable character other than the question mark. However, a
specific argument might have more requirements. For more information about the specific requirements
for an argument, see the relevant command reference.
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 keyword aliases
The command keyword alias function allows you to replace the first keyword of a non-undo command or
the second keyword of an undo command with your preferred keyword when you execute the command.