Alcatel OS6602-24 Getting Started Guide - Page 48

Command Line (?) Help, Partial Keyword Completion, Deleting Characters, <string&gt

Page 48 highlights

Command Line (?) Help The CLI provides additional help in the form of the question mark (?) character. The ? character provides information that helps you build your command syntax. For example, if you enter -> show vlan router at the command line and are unsure of the next keyword, you can enter the ? character for additional options (be sure to include a space between the last keyword and the ? character): -> show vlan router ? ^ MAC IP (Vlan Manager Command Set) The carat character (^) indicates the point where you invoked the command line help. Possible keyword options, along with the corresponding command set, are displayed. Here, you can continue building the command by entering either mac or ip. Some command completion options may indicate user-defined information. For example: , , , etc. The option indicates that the command can be completed by pressing Enter. Note. The ? character can be entered at any time. In addition, you can type the ? character alone at the CLI prompt to display root keywords for all command sets. Partial Keyword Completion The CLI has a partial keyword recognition feature. Instead of typing an entire keyword, you can type only the minimum number of characters needed to uniquely identify the keyword, then press the Tab key. The CLI will complete the keyword and place the cursor at the end of the command line. If you do not enter enough characters to uniquely identify the keyword, pressing the Tab key will have no effect. If you enter characters that do not belong to an applicable keyword, pressing the Tab key will remove the characters and place the cursor back to its previous position. Deleting Characters You can delete CLI command characters by using the Backspace key or the Delete key. The Backspace key deletes each character in the line, one at a time, from right to left. To change incorrect syntax with the Delete key, use the Left Arrow key to move the cursor to the left of the character to be deleted, then use the Delete key to remove characters to the right of the cursor. 42 CLI Basics March 2005

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76

42
CLI Basics
March 2005
Command Line (?) Help
The CLI provides additional help in the form of the question
mark (
?
) character. The
?
character provides information that
helps you build your command syntax. For example, if you
enter
-> show vlan router
at the command line and are unsure of the next keyword, you
can enter the
?
character for additional options (be sure to
include a space between the last keyword and the
?
character):
-> show vlan router ?
^
MAC IP
(Vlan Manager Command Set)
The carat character (
^
) indicates the point where you invoked
the command line help. Possible keyword options, along with
the corresponding command set, are displayed. Here, you can
continue building the command by entering either
mac
or
ip
.
Some command completion options may indicate user-defined
information. For example:
<string>
,
<slot/port>
,
<hh:mm:ss>
, etc. The option
<cr>
indicates that the
command can be completed by pressing
Enter
.
Note.
The
?
character can be entered at any time. In addi-
tion, you can type the
?
character alone at the CLI prompt
to display root keywords for
all
command sets.
Partial Keyword Completion
The CLI has a partial keyword recognition feature. Instead of
typing an entire keyword, you can type only the minimum
number of characters needed to uniquely identify the keyword,
then press the
Tab
key. The CLI will complete the keyword
and place the cursor at the end of the command line.
If you do not enter enough characters to uniquely identify the
keyword, pressing the
Tab
key will have no effect.
If you enter characters that do not belong to an applicable
keyword, pressing the
Tab
key will remove the characters and
place the cursor back to its previous position.
Deleting Characters
You can delete CLI command characters by using the
Back-
space
key or the
Delete
key. The
Backspace
key deletes each
character in the line, one at a time, from right to left.
To change incorrect syntax with the
Delete
key, use the
Left
Arrow
key to move the cursor to the left of the character to be
deleted, then use the
Delete
key to remove characters to the
right of the cursor.