Entering CLI Commands
26 Basic System Configuration Guide
[metric <metric>] [tag <tag>] [enable|disable] black-hole
*A:ALA-12>config>router# static-route preference 1 10.1.0.0/16 metric
Some SR OS CLI commands have multiple unnamed parameters. For example, the subrate 
csu-mode rate-step command has both a csu-mode parameter and a rate-step parameter that 
do not have leading keywords. SR OS uses a best-match algorithm to select which parts of 
the user input are intended to be used for each unnamed parameter. This best-match algorithm 
depends on the specific command.
In some cases, it is not possible for the algorithm to be 100% accurate, and the SR OS may 
assign a value to an unintended parameter when two unnamed parameters have similar 
constraints and syntax. For example, the environment alias alias-name alias-command-
name command may reverse the alias-name and alias-command-name parameters if the first 
parameter entered is larger than 80 characters.
Editing Keystrokes
When entering a command, special keystrokes allow for editing of the command. Table 7 lists 
the command editing keystrokes.
Table 7: Command Editing Keystrokes 
Editing Action Keystrokes
Delete current character <Ctrl-d>
Delete text up to cursor <Ctrl-u>
Delete text after cursor <Ctrl-k>
Move to beginning of line <Ctrl-a>
Move to end of line <Ctrl-e>
Get prior command from history <Ctrl-p>
Get next command from history <Ctrl-n>
Move cursor left <Ctrl-b>
Move cursor right <Ctrl-f>
Move back one word <Esc><b>
Move forward one word <Esc><f>
Convert rest of word to uppercase <Esc><c>