Patton electronic SmartNode 4110 Series manual Command history, Command Editing Shortcuts

Models: SmartNode 4110 Series

1 664
Download 664 pages 15.88 Kb
Page 52
Image 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-vimmediately fol-

 

lowed by the question mark <?>.

 

 

Command editing

52

Page 52
Image 52
Patton electronic SmartNode 4110 Series manual Command history, Command Editing Shortcuts