28.06.2014 Views

Learning by Doing: CISCO Certified Network ... - SCN Research

Learning by Doing: CISCO Certified Network ... - SCN Research

Learning by Doing: CISCO Certified Network ... - SCN Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

the previous commands. We did this earlier in part 1 with our workstation DOS<br />

prompt and the DOSKEY commands. If you do not see anything when you use<br />

the up arrow it may because you have not used any commands at that specific<br />

prompt mode. Next, lets look at some keystroke shortcuts. Suppose you typed a<br />

command similar to what you need to use next. Ping will be a good example<br />

here…suppose we wanted to ping to destinations 192.168.1.1 and 192.168.1.2.<br />

We could try it this way:<br />

router#ping 192.168.1.1<br />

router#ping 192.168.1.2<br />

(typed)<br />

(typed)<br />

or we could do it this way:<br />

router#ping 192.168.1.1 (typed)<br />

router#ping 192.168.1.1 (used the up arrow)<br />

router#ping 192.168.1. (back space one character)<br />

router#ping 192.168.1.2 (typed in a “2”)<br />

In this manner we used less keystrokes and we have reduced the possibility of a<br />

typing error on the second ping command. These types of short cuts are ok. You<br />

can use keystroke commands to move back and forth more quickly on the<br />

command line. I use the control+a and control+e with my up arrow quite<br />

frequently. Plus these combinations also sound like some mighty fine fodder for a<br />

certification exam, don’t they? Hint, hint, wink, wink, nudge, nudge, know what I<br />

mean, know what I mean? Fill in the chart below on keystroke shortcuts and what<br />

they do.<br />

Shortcut<br />

Control+a<br />

Control+b<br />

Escape+b<br />

Control+e<br />

Control+f<br />

Escape+f<br />

Control+n<br />

Control+p<br />

Tab<br />

Description<br />

Completes the entry<br />

16. Another way to view the progression of commands is using the “show history”<br />

command. The up arrow will only show you those commands one at a time, but<br />

router#show history<br />

the show history will show you the last 15 commands (default) you used. Heck,<br />

you can even change how many previous commands will be stored. Lets try that<br />

now:<br />

163

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

Saved successfully!

Ooh no, something went wrong!