
Startup and General Configuration Summary
Configuring the Line Editor
Matrix DFE-Platinum and Diamond Series Configuration Guide
2-17
2.1.6.9
Abbreviating and Completing Commands
The Matrix Series device allows you to abbreviate CLI commands and keywords down to the
number of characters that will allow for a unique abbreviation.
Figure 2-6
shows how to abbreviate
the
show netstat
command to
sh net
.
Figure 2-6
Abbreviating a Command
2.1.6.10
Using the Spacebar Auto Complete Function
When the spacebar auto complete function is enabled, pressing the spacebar after a CLI command
fragment will allow you to determine if the fragment is unique. If it is, the CLI will complete the
fragment on the current display line.
By default, this function is disabled. For more information on enabling it using the
set cli
completion
command, refer to
Section 2.2.3.20
.
Figure 2-7
shows how, when the function is
enabled, entering
conf
and pressing the spacebar would be completed as configure:
Figure 2-7
Completing a Partial Command
2.1.7
Configuring the Line Editor
The command line editor determines which key sequences can be used in the CLI. Example: Ctrl+A
will move the cursor to beginning of the command line when in Emacs mode. The CLI supports
both vi and Emacs-like line editing commands. By default, the “default” line-editing mode is
configured, with no special key sequences. See
Table 2-3
lists some commonly used Emacs and vi
commands. Use the
set line-editor
command (
Section 2.1.7.2
) to change the line-editor mode.
Matrix(rw)->
sh net
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
----- ------ ------ --------------------- --------------------- -------
TCP 0 0 10.21.73.13.23 134.141.190.94.51246 ESTABLISHED
TCP 0 275 10.21.73.13.23 134.141.192.119.4724 ESTABLISHED
TCP 0 0 *.80 *.* LISTEN
TCP 0 0 *.23 *.* LISTEN
UDP 0 0 10.21.73.13.1030 134.141.89.113.514
UDP 0 0 *.161 *.*
UDP 0 0 *.1025 *.*
UDP 0 0 *.123 *.*
Matrix(rw)->
conf
<SPACEBAR>
Matrix(rw)->configure