Home > Networking Tips > Routing and Switching > IOS command shortcut favorites
Networking Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ROUTING AND SWITCHING

IOS command shortcut favorites


Tom Lancaster
01.10.2006
Rating: -3.67- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


While there are certainly a lot of alternatives today for configuring Cisco routers such as Ciscoworks, GUIs and SNMP, for a lot of tasks, it's hard to beat the good, old fashioned command line. Yet there's no reason to type any more than absolutely necessary. IOS comes with dozens of shortcuts, which are frankly too numerous to remember. In this tip, I've listed my favorites -- the ones used often enough to remember, and a few whose time has passed.

Given the state of terminal support for the dedicated arrow keys, quite a few of the escape sequences just aren't needed anymore. Control (Ctrl)-N and Ctrl-P move up and down the history buffer, but not as well as the "up" and "down" arrow keys. Save your brain cells for more important things! Ctrl-F and Ctrl-B move forward and backward (respectively) on a line. You might see these on a test, but it's a lot easier to remember the right and left arrow keys.

More on this topic

Router Expert: Cool IOS commands

Router Expert: More cool IOS commands - Implementing r-command support

Browse more Routing & Switching tips

The best escape sequence to remember is Ctrl-W. This deletes the last word you typed. The reason it's so useful is because (if you're like me) you probably use the tab-complete feature a lot when you're searching for some command that you know is there, but just can't quite remember. And the utility comes when you're searching a couple words deep. Type the first couple letters, then tab+complete and "?" to look at the new list of options. What you're looking for isn't there? Ctrl-W and "?" again. It'll save a lot of keystrokes.

Ctrl-L and Ctrl-R repeat the current command on a new line. This is useful when you're doing a lot of repetitive tasks, such as configuring access lists.

Ctrl-Z and Ctrl-C are probably common knowledge, but are included for completeness. Use Ctrl-Z to exit configuration mode, and Ctrl-C terminates a process, such as a continuous PING.

Ctrl-A can also be useful, particularly for things like setting temporary aliases. If you're doing something like troubleshooting, where you're typing the same command (debug... for instance) and you want to set it as an alias, just use the "up" arrow to get to the command in the history, and then use Ctrl-A to take you to the beginning of the line where you can insert your alias command (as opposed to holding down the left-arrow key to get to the beginning of the line.)

For further information, you can find a guide to using the terminal editing shortcuts on Cisco's Website.

Command shortcut quick reference
ShortcutTask
Ctrl-A alias
Ctrl-B move backward
Ctrl-C terminate process
Ctrl-F move forward
Ctrl-L repeat current command on new line
Ctrl-N move up the history buffer
Ctrl-P move down the history buffer
Ctrl-R repeat current command on new line
Ctrl-W delete last word typed
Ctrl-Z exit configuration mode

Rate this Tip
To rate tips, you must be a member of SearchNetworking.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Routing and Switching
Testing LAN switch power consumption: A best practices guide
Dynamic IP routing and routing protocols
Monitor your network traffic with MRTG
How routers work: An overview for networking pros
Secure Cisco routers against IOS flaw attack
Network summarization -- Supernetting and wildcard masks
Routing: Five common, easily avoided errors
Router Expert: Building a WLAN proxy server, implementing ASR
Router Expert: Building a WLAN proxy server, implementing WPAD
Cisco IOS IP routing: Static routes

Network Hardware
Unified wireless network still a work in progress for vendors
3Com acquisition confirms HP-Cisco battle for China
Juniper to CIOs: Invest in internal cloud computing networks
802.11n wireless APs bring IP video to sprawling Illinois high school
802.11n upgrade: College ditches legacy network for new vendor
Network device management overload: Engineers managing too many boxes
What is network infrastructure and what is a hybrid network?
What preventative maintenance procedures for network devices exist?
Can wireless adapters operate as client access points to make SoftAPs?
Is there VLAN software recommend for Realtek NICs?
Network Hardware Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
core router  (SearchNetworking.com)
fiber jumper  (SearchNetworking.com)
flow routing  (SearchNetworking.com)
foreign agent  (SearchNetworking.com)
foreign network  (SearchNetworking.com)
hardware load-balancing device  (SearchNetworking.com)
logical router  (SearchNetworking.com)
mrouter  (SearchNetworking.com)
patch cord  (SearchNetworking.com)
port interface card (PIC)  (SearchNetworking.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Networking Solutions for Business

Alcatel-Lucent Network Business Communications Solutions

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts