Cisco Tips & Tricks

May 22, 2006

Command Editing tricks

Filed under: Router, Technology and Software — ciscotips @ 7:57 pm

If the end of a line goes too long, it will not automatically wrap to the next one. Instead the Cisco IOS command shell gives you a dollar sign $. This indicates that you are an over-achiever and have typed too much,at least too much to be shown on the screen.
Your line would now look like this:

Router#$ this is a way too long line that is full of sound and fury

Note that the $ goes after the Router Prompt. If you keep typing is will shift over as you type,hiding more of the beginning of the sentence.
Router#$long line that is full of sound and fury, signifying nothing!

You can get back to the beginning of your Novel by typing CTRL-A

Router# For Demo Purposes Only this is a long line that is full of $

If you want to you can turn off these Advance Editing Tools, Use following commandby  Terminal No Editing 

This command will not let you edit your line. You can turn editing on by following command.
Terminal Editing.  

Another thing which i want to cover in this section is command history.

Now when, you just typed in a Real Long Command (RLC) and you realize that you made a mistake in one word and want a second chance to do it right again. Well, the Cisco IOS makes this Real Easy!

The Router keeps the last 10 commands you issued in its HISTORY, which is a special memory Buffer which holds the "Command History".(note here that a "Buffer" is a memory space for storing things…)

If you are using the VT-100 Emulator we talked about before, simply do the following.
Press the UP Arrow key to go back to the previous command.

Press the DOWN Arrow key to go back to the previous command.
If you are a poor unfortunate without VT-100 you can use these instead:

CTRL-P takes you to the "Previous" command.

CTRL-N takes you to the "Next" commands.
Putting the Command show history in at the prompt gives you the list of the last 10 commands you have typed in.

Router# show history

Command One
Command Two
Command Three
Command Four
Command Five
Command Sixx – (with a mistake!)
Command Six – (fixed now)
Command Eight – "There is No Command 7!"
Command Nine
Command Ten
You can increase the size of your HISTORY buffer by using the command:

Terminal History Size

Router# Terminal History Size 99

The above command would give you 99 commands to play with!


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at

%d bloggers like this: