Navigation
To see edit keys, type help edit:
hostname# help edit Available editing keystrokes
Delete current character..................... | |
Delete text up to cursor..................... | |
Delete from cursor to end of line............ | |
Move to beginning of line.................... | |
Move to end of line.......................... | |
Get prior command from history............... | |
Get next command from history................ | |
Move cursor left............................. | |
Move cursor right............................ | |
Move back one word........................... | |
Move forward one word........................ | |
Convert rest of word to uppercase............ | |
Convert rest of word to lowercase............ | |
Delete remainder of word..................... | |
Delete word up to cursor..................... | |
Transpose current and previous character..... | |
Enter command and return to root prompt...... | |
Refresh input line........................... |
Command Line Editing
In addition to the commands listed in the previous section, the following commands can be used to edit your command line entries:
Table
Key Combination | Edit Function |
|
|
|
|
up arrow | Enters the last command in the command line |
|
|
!! <cr> | Executes the last command |
|
|
!<number> | Executes command number <number> in the history buffer. Use the |
| history command to view command numbers. |
|
|
Command Aliases
The CLI allows you to create aliases for long or complex command line entries. An alias is a string that can represent any of the following:
•a command
•a command parameter
•a command flag
•a combination of command, parameters, and flags
X Family CLI Reference V 2.5.1 | 127 |
|
|