To complete a command or option that you have partially typed, press Tab or
Spacebar. If the partially typed letters uniquely identify a command, the complete
command name appears. Otherwise, a message indicates that your entry is ambiguous
or invalid. Possible command completions are displayed if your entry is ambiguous.
You can also use command completion on filenames and usernames. To display all
possible values, type one or more characters followed immediately by a question
mark. To complete these partial entries, press Tab only. Pressing Spacebar does not
work.
Online Help
The CLI provides context-sensitive help at every level of the command hierarchy.
The help information tells you which commands are available at the current level in
the hierarchy and provides a brief description of each.
To get help while in the CLI, type a question mark (?) in one of the following ways:
■ Type a question mark at the command-line prompt. The CLI lists the available
commands and options. For examples, see “CLI Operational Mode” on page 92
and “CLI Configuration Mode” on page 93.
■ Type a question mark after entering the complete name of a command or
command option. The CLI lists the available commands and options, then
redisplays the command names and options that you typed:
user@host> request ?
Possible completions:
chassis Perform chassis-specific operations
ipsec Perform IP Security operations
message Send text message to other users
routing-engine Log in to Routing Engine
security Perform security-level operations
services Perform service application operations
support Perform JUNOS support tasks
system Perform system-level operations
user@host> request
■ Type a question mark in the middle of a command name. The CLI lists possible
command completions that match the letters you have entered so far, then
redisplays the letters that you typed. For example, to list all operational mode
commands that start with the letter s, type the following:
user@host> s?
Possible completions:
set Set CLI properties, date/time, craft interface
message
show Show system information
ssh Start secure shell on another host
start Start shell
user@host> s
96 ■ Using the Command-Line Interface
J2320, J2350, J4350, and J6350 Services Router Getting Started Guide