Simple Cisco IOS Shell Operating Instructions:
CTRL-A goes to the "Beginning" of the Line.
CTRL-E goes to the "End" of the Line.
CTRL-B go "Back One Character". (can also use LEFT Arrow key)
CTRL-F go "Forward One Character". (can also use RIGHT Arrow key)
ESCAPE-B go "Backward to the Beginning of the Next Word".
ESCAPE-F go "Forward to the Beginning of the Next Word".
CTRL-K deletes everything to the right of the cursor
CTRL-P recalls the previous command in the history buffer
CTRL-N recalls the next command in the history buffer
Using the ARROW Keys is limited to those using a VT-100 Terminal Emulation.
If you want to you can turn off these Advance Editing Tools by typing:
router#terminal no editing
Since this would serve no purpose, turn them back on by typing:
router#terminal editing
The Router keeps the last 10 commands you issued in its HISTORY, which is a
special memory buffer which holds the "Command History". If you are using
VT-100 emulation, you can 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 without VT-100 you can use these instead:
CTRL-P takes you to the "Previous" command.
CTRL-N takes you to the "Next" commands.
The command show history gives you the list of the last 10 commands you have
typed in:
router#show history
You can increase the size of your HISTORY buffer by using the command:
router#terminal history size
router#terminal history size 99
The above command would hold 99 commands in the HISTORY buffer!
If you type in the first few letters of a command and a Question Mark the IOS
will give you a list of Commands that start with those letters:
router#con?
--------------------------------------------------------------------------------
IOS Aliases
http://techrepublic.com.com/5100-1035_11-5855141.html
router(config)# alias exec s sh run
This means you can now enter s rather than typing the entire show
running-configuration command.
--------------------------------------------------------------------------------
Command Output Filtering
Note:
LINENUM
"Introduced in Cisco IOS Software Release 12.2(4), this command
displays line numbers to a show output."
You can use the show running-config linenum command to configure the system to
include line numbers at the start of each line in the output.
router#show running-config linenum
Once you have line numbers to use as reference points, you can then filter the
output by starting at a certain line or only returning a specified line.
Example of starting the output at a specific line:
router#show running-config linenum | begin 6 :
Here's an example of requesting only one line returned in the output:
router#show running-config linenum | include ( 6 : )
You can use the begin command to start the output at a certain line (such as
an interface). Here's an example:
router#show running-config | begin interface Serial3/0
In addition, you can use the exclude command in the same way if there's
something particularly long that you don't need to see in the output.
The best thing about these three commands is that they work with almost any
output on the router. For example, let's say I wanted to see all routes that
begin with the IP address 10.83.x.x.
router#show ip route | include 10.83.
Filter output by interface
On the other hand, if you only need to see the output of one specific
interface, you can also filter output in that way. Here's an example:
router#show running-config interface Serial3/0
Start searching your output
Did you know that you can search directly from the show running-config
command's output? If you use the show running-config command, you should see
a –More– prompt at the end of each page of output (depending on your page
length). If you enter a forward slash [/] at this prompt, it will replace the
prompt with the slash, and you can then type in whatever you want to search
for. Press [Enter], and it will say filtering and then begin showing you the
results of your search. (This is exactly how the UNIX pg command works.)
To make these even easier, setup aliases:
srb - show running-config | begin
sre - show running-config | exclude
sri - show running-config | include
srint - show running-config interface