28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

command on the left side of the pipe into the command on the right side of the pipe, in<br />

exactly the same way that a Unix pipe works. The following commands are available:<br />

aviva@router1> show route | ?<br />

Possible completions:<br />

count<br />

Count occurrences<br />

display<br />

Show additional kinds of information<br />

except<br />

Show only text that does not match a pattern<br />

find<br />

Search for first occurrence of pattern<br />

hold<br />

Hold text without exiting the --More-- prompt<br />

last<br />

Display end of output only<br />

match<br />

Show only text that matches a pattern<br />

no-more<br />

Don't paginate output<br />

request<br />

Make system-level requests<br />

resolve<br />

Resolve IP addresses<br />

save<br />

Save output text to file<br />

trim<br />

Trim specified number of columns from start of line<br />

Another way to minimize typing is to use keyboard sequences. The simplest are the<br />

up and down arrows, which scroll through the most recent commands you typed.<br />

(The JUNOS software maintains a command history similar to Unix shell history.) If<br />

you want to modify rather than retype a command, you can use the left and right<br />

arrows and the Backspace and Delete keys. There are also a number of keyboard<br />

sequences that are similar or identical to Emacs commands that you can use to move<br />

around on a command line and edit it. Table 1-1 lists some common keystrokes.<br />

Table 1-1. Keystroke sequences<br />

Keystroke sequence<br />

Ctrl-p<br />

Ctrl-n<br />

Ctrl-a<br />

Ctrl-e<br />

Ctrl-b<br />

Ctrl-f<br />

Esc-b<br />

Esc-f<br />

Ctrl-k<br />

Esc-d<br />

Esc-Backspace<br />

Ctrl-y<br />

Action<br />

Display previous command history line<br />

Display next command history line<br />

Move to beginning of line<br />

Move to end of line<br />

Move back one character<br />

Move forward one character<br />

Move back one word<br />

Move forward one word<br />

Delete everything from cursor to end of line<br />

Delete one word forward (the word after the cursor)<br />

Delete one word backward (the word before the cursor)<br />

Paste the deleted word or text at the cursor<br />

Another aspect of the CLI help is online documentation, which is installed on the<br />

router’s hard disk. This documentation is taken from the JUNOS product configuration<br />

guides. You can use the online documentation to get information about configuration<br />

statements while you are logged in to the router. To get high-level information<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.<br />

Introduction | 9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!