IOS CLI: Show Run Linenum

You probably know this one already, but I have been typing ìwr tî for a long time and never stopped to look. Puts a line number at the side of the config so you can say to the person on the other end of the phone, see line 10……….

r2#sh run linenum
Building configuration…

Current configuration : 3057 bytes
1 : !
2 : upgrade fpd auto
3 : version 12.4
4 : service nagle
5 : no service pad
6 : service tcp-keepalives-in
7 : service tcp-keepalives-out
8 : service timestamps debug datetime msec localtime show-timezone
9 : service timestamps log datetime msec localtime show-timezone
10 : service password-encryption
11 : service sequence-numbers
12 : !
13 : hostname r2
14 : !
15 : boot-start-marker
16 : boot-end-marker
17 : !

They think of everything these days. I suspect that cheap and large flash in your routers means that useful commands are now possible. I must start looking for them more often.

Other posts in the series

  1. Cisco IOS CLI Regex: sh ip bgp in
  2. IOS CLI Tip: More accurate pipe commands
  3. Cisco Nexus NXOS and Fixing broken “switchto” syntax with alias
  4. show ip eigrp topology all
  5. Cisco IOS CLI Shortcuts
  6. The poor man's IOS Traffic Generator
  7. IOS: "terminal monitor" on, off - logging to your terminal
  8. IOS: Console, Terminal, Monitor, VTY - what is what ?
  9. IOS: Clearing an interface configuration
  10. IOS: Setting Terminal Window Length
  11. IOS CLI: show run linenum (This post)
  12. IOS: Setting the TCP timeout on IOS
  13. IOS: enable and .... disable ?
  14. IOS: Reverse SSH console access - Part 2
  15. IOS:Open Source Lab DNS and IP addressing
  16. IOS: Reverse SSH console access
  17. ip tcp timestamp
  18. Cisco ASA and IOS command tip - test aaa-server
About Greg Ferro

Greg Ferro is a Network Engineer/Architect, mostly focussed on Data Centre, Security Infrastructure, and recently Virtualization. He has over 20 years in IT, in wide range of employers working as a freelance consultant including Finance, Service Providers and Online Companies. He is CCIE#6920 and has a few ideas about the world, but not enough to really count.

He is a host on the Packet Pushers Podcast, blogger at EtherealMind.com and on Twitter @etherealmind and Google Plus

  • Andrew

    Thanks, very useful command – never noticed it before

  • http://www.linkedin.com/in/anouarbelkacem cacprone

    Hi,

    Yes really useful, thanks again

  • http://blog.ioshints.info Ivan Pepelnjak

    “Cheap and large flash” means that you have heaps of weird code in IOS, including Tcl, XML, VoiceXML, maybe Perl is coming along …

  • Ben Story

    I wish that Cisco would realize that flash is cheap and could be larger. I can’t believe how small of flash chips still come standard compared the to the larger and larger IOS images. Of course it would also be nice to run uncompressed IOS images like in dynamips. They load much faster.

  • Haider Ali-Khan

    Any idea how to show line numbers in the Nexus OS? The show run linenum doesn’t seem to be an option – at least not in the 5Ks.