After you start the CLI with the cli command, type a question mark (?) to display a list of the available commands:
root> ?
Possible completions: clear Clear information in the system configure Manipulate software configuration information file Perform file operations help Provide help information monitor Show real-time debugging information mtrace Trace multicast path from source to receiver op Invoke an operation script ping Ping remote target quit Exit the management session request Make system-level requests restart Restart software process set Set CLI properties, date/time, craft interface message show Show system information ssh Start secure shell on another host start Start shell telnet Telnet to another host test Perform diagnostic debugging traceroute Trace route to remote host
To display the options available for a command, type the command followed by a space and a question mark:
root> show ?
Possible completions: accounting Show accounting profiles and records aps Show Automatic Protection Switching information arp Show system Address Resolution Protocol table entries as-path Show table of known autonomous system paths bfd Show Bidirectional Forwarding Detection information bgp Show Border Gateway Protocol information chassis Show chassis information class-of-service Show class-of-service (CoS) information cli Show command-line interface settings configuration Show current configuration connections Show circuit cross-connect connections dialer Show dialer information dlsw Show DLSw information ---(more 93%)---
To use command completion, type the first few letters of a command and press the Spacebar or the Tab key.
For example, when you type the following partial command, the system completes the command show chassis hardware and displays hardware information:
root> sh<tab> ch<tab>
h<tab>
user@host> show chassis hardware Hardware inventory: Item Version Part number Serial number Description Chassis JN1086AA8ADA J4350 Midplane REV 00 710-012339 NE0664 System IO REV 00 710-012315 NE3564 JX350 System IO Crypto Module Crypto Acceleration Routing Engine REV 00 710-012149 RE-J4350-2540 FPC 0 FPC PIC 0 4x GE Base PICPower Supply 0
Type the following partial command to display the JUNOS software version running on the router:
root> sh ver
Hostname: host Model: j4350 JUNOS Software Release [8.5-20070628.0] Enhanced Services
To access configuration mode, enter the configure command. The prompt changes to a pound sign (#).
root> configure
root#
To activate changes to the configuration, enter the commit command.
root> commit
root#
To exit configuration mode, enter the exit command. Use the exit command again to exit the CLI completely.
root# exit
root> exit
root@%
For complete information about CLI features, see the JUNOS CLI User Guide.