Command editing
52
SmartWare Software Configuration Guide
3 • Command line interface (CLI)
CLI to complete the command at the prompt. If the number of characters is not sufficient to uniquely identify
the command, the CLI will provide a list with all commands starting with the typed characters. For example, if
you enter the string
co
in the configure mode and press
<tab>
, the selections
configure
,
copy
, and
context
are
displayed.
Command history
SmartWare maintains a list of previously entered commands that you can go through by pressing the
<up-
arrow>
and
<down-arrow>
keys, and then pressing
<enter>
to enter the command.
The show history command displays a list of the commands you can go through by using the arrow keys.
Command Editing Shortcuts
SmartWare CLI provides a number of command shortcuts that facilitate editing of the command line. Com-
mand editing shortcuts are summarized in
table 3
on page 52. The syntax <
Ctrl>-<p>
means press the <
p>
key
while holding down the keyboard’s control key (sometimes labeled
Control, Ctl
, or
Ctrl
, depending on the key-
board and operating system of your computer).
<Esc>-<f>
is handled differently; press and release the escape key (often labeled
Esc
on many keyboards) and
then press the <
f>
key.
Table 3. Command edit shortcuts
Keyboard
Description
<Ctrl>-<p
> or
<up-arrow>
Recall previous command in the command history.
<Ctrl>-<p>
or
<up-arrow>
Recall next command in the command history.
<Ctrl>-<p>
or
<up-arrow>
Move cursor forward one character.
<Ctrl>-<p>
or
<up-arrow>
Move cursor backward one character.
<Esc>-<f>
Move cursor forward one word.
<Esc>-<b>
Move cursor backward one word.
<Ctrl>-<a>
Move cursor to beginning of line.
<Ctrl>-<e>
Move cursor to end of line.
<Ctrl>-<k>
Delete to end of line.
<Ctrl>-<u>
Delete to beginning of line.
<Ctrl>-<d>
Delete character.
<Esc>-<d>
Delete word.
<Ctrl>-<c>
Quit editing the current line.
<Ctrl>-<l>
Refresh (redraw) the display.
<Ctrl>-<t>
Transpose characters.
<Ctrl>-<v>
Insert a code to indicate to the system that the keystroke immediately fol-
lowing should be treated as normal text, not a CLI command.
For example, pressing the question mark
<?>
character in the CLI prints a
list of possible tokens. If you want to use the
?
in a configuration com-
mand, e.g. to enter a regular expression, press
Ctrl-v
immediately fol-
lowed by the question mark <
?
>.
Содержание SmartNode Series
Страница 250: ...RIP configuration task list 250 SmartWare Software Configuration Guide 23 RIP configuration rip enabled ...
Страница 635: ...635 Appendix A Terms and definitions Chapter contents Introduction 636 SmartWare architecture terms and definitions 636 ...
Страница 641: ...641 Appendix B Mode summary Chapter contents Introduction 642 ...
Страница 648: ...648 Appendix D Internetworking terms acronyms Chapter contents Abbreviations 649 ...
Страница 653: ...653 Appendix E Used IP ports available voice codecs Chapter contents Used IP ports 654 Available voice codecs 655 ...