Вы находитесь на странице: 1из 1

JNCIA-Junos Study Guide—Part 1

To complete a command or option that you have partially typed, press the Spacebar. If the partially typed letters begin a string
that uniquely identifies a command, the CLI displays the complete command name. Otherwise, the CLI beeps to indicate that
you have entered an ambiguous command, and it displays the possible completions.
The command completion option is on by default, but you can turn it off. To disable command completion for an individual
user’s session, issue the set cli complete-on-space off command as follows:
user@router> set cli complete-on-space off
Disabling complete-on-space

Tab Completion for Commands and Variables

You can use the Tab key to complete system commands and user-defined variables. Examples of variables include policy names,
AS paths, community names, and IP addresses. The Tab key also offers a list of possible completions if multiple, ambiguous
options exist. Command completion allows you to save time by reducing your keystrokes, and prevents errors by accurately
referencing the desired user-defined variables.

Emacs-Style Control Keys

The CLI supports Emacs-style keyboard sequences that allow you to move the cursor on a command line and delete specific
characters or words. The following are supported sequences:
• Ctrl+b: Moves the cursor left one character;
• Ctrl+a: Moves the cursor to the beginning of the command line;
• Ctrl+f: Moves the cursor right one character;
• Ctrl+e: Moves the cursor to the end of the command line;
• Delete and Backspace: Deletes the character before the cursor;
• Ctrl+d: Deletes the character over the cursor;
• Ctrl+k: Deletes from the cursor to the end of the line;
• Ctrl+u: Deletes all characters and negates the current command;

© 2012 Juniper Networks, Inc. All rights reserved. User Interface Options • Chapter 2–5

Вам также может понравиться