Editing a command line
To edit a command line, use the keys listed in Table 1 or the hotkeys listed in Table 4. When you are finished, you can press Enter to execute the command.
Table 1: Command line editing keys
Keys | Function |
---|---|
Common keys | If the edit buffer is not full, pressing a common key inserts a character at 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 (↑) | 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 typing part of a keyword, the system automatically completes the keyword.
|
The total length of a command line cannot exceed 512 characters, including spaces and special characters.
The device supports the following special commands:
#–Used by the system in a configuration file as separators for adjacent sections.
version–Used by the system in a configuration file to indicate the software version information. For example, version 7.1. xxx , Release xxx .
These commands are special because of the following reasons:
These commands are not intended for you to use at the CLI.
You can enter these commands in any view, or enter any values for them. For example, you can enter # abc or version abc. However, the settings do not take effect.
The device does not provide any online help information for these commands.