User guide

Chapter 3 Command Line Interface
Navigational and Shortcut Features
SCE 1000 2xGBE Release 2.0.10 User Guide
OL-7117-02 3-13
Navigational and Shortcut Features
Command History
CLI maintains a history buffer of the most recent commands you used in the current CLI session
for quick retrieval. Using the keyboard, you can navigate through your last commands, one by
one, or all commands that start with a given prefix. By default, the system saves the last 30
commands you typed. You can change the number of commands remembered using the history
size command.
To use the history functions, use the keys shown in the following table.
Table 3-3 Keyboard Shortcuts for History Functions
Arrow Shortcut Description
Up arrow Ctrl-P Moves cursor to the previous command with the same prefix.
Down arrow Ctrl-N Moves cursor to the next command with the same prefix as original.
Ctrl-L
Ctrl-R
Re-display the current command line.
Keyboard Shortcuts
The SCE 1000 has a number of keyboard shortcuts that make it easier to navigate and use the
system. The following table shows the keyboard shortcuts available.
You can get a display the keyboard shortcuts at any time by typing help bindings.
Table 3-4 Keyboard Shortcuts
Shortcut Key Description
Navigational shortcuts
CTRL-F /-> Move cursor one character to the right.
CTRL-B /<- Move cursor one character to the left.
ESC-F Move cursor one word to the right (forward).
ESC-B Move cursor one word to the left (backward.
CTRL-A Move cursor to the start of the line.
CTRL-E Move cursor to the end of the line.
Editing shortcuts
CTRL-D Delete the character where the cursor is located.
ESC-d Delete from the cursor position to the end of the word.
Backspace Delete the character before the current location of the cursor.
CTRL-H Delete the character before the current location of the cursor.
CTRL-K Deletes from the cursor position to the end of the line
CTRL-U Deletes all characters from the cursor to the beginning of the line