Tips & tricks
Help
You can press the question mark (?) key to display command help.
- Press the question mark (?) key at the command prompt to display a list of the commands available and a description of each command.
- Type a command followed by a space and press the question mark (?) key to display a list of the options available for that command and a description of each option.
- Type a command followed by an option and press the question mark (?) key to display a list of additional options available for that command-option combination and a description of each option.
Completing commands automatically
You can use the tab key or the question mark (?) key to complete commands.
- Press Tab at any prompt to scroll through the options available for that prompt.
- You can type the first characters of any command and press Tab or ? (question mark) to complete the command or to scroll through the options that are available at the current cursor position.
- After completing the first word of a command, you can press the space bar and then the tab key to scroll through the options available at the current cursor position.
Recalling commands
You can recall previously entered commands by using the Up and Down arrow keys to scroll through commands you have entered.
Editing commands
Use the Left and Right arrow keys to move the cursor back and forth in a recalled command. You can also use the Backspace and Delete keys and the control keys listed in the following table in order to edit the command.
Function | Key combination |
---|---|
Beginning of line | CTRL+A |
End of line | CTRL+E |
Back one character | CTRL+B |
Forward one character | CTRL+F |
Delete current character | CTRL+D |
Previous command | CTRL+P |
Next command | CTRL+N |
Abort the command | CTRL+C |
If used at the root prompt, exit the CLI | CTRL+C |
Breaking a long command
To break a long command over multiple lines, use a \ at the end of each line.
Abbreviating commands
You can abbreviate commands and command options to the smallest number of non-ambiguous characters. For example, the command get system status
can be abbreviated to g sy st
.