Command Reference

Cisco "show running-config" Command Explained

show running-config — displays the active configuration in RAM — every setting currently in effect on the device. Runs in privileged EXEC mode.

Syntax and common variants

VariantPurpose
show running-configEntire active config
show run interface gi0/1Just one interface's config
show run | section ospfOnly the OSPF section
show run | include hostnameLines matching a word

Reading the output

Output fieldMeaning
(sections)Config groups: interfaces, routing, lines, ACLs
!Separator between config sections
building configuration…The device assembling current state

When to use it

The source of truth while troubleshooting: what is actually configured right now (versus what you assumed). Piping with | section and | include turns a long config into a targeted answer. Remember it lives in RAM — unsaved changes vanish on reload. Browse more in the command reference or practise in the free labs.

Frequently asked questions

What is the difference between running-config and startup-config?

running-config is the live config in RAM; startup-config is the saved copy in NVRAM used at boot. Save with copy run start.

How do I view just part of the config?

Pipe it: show run | section for a block, | include for matching lines, or show run interface .

Why don't I see passwords in the output?

Secrets appear hashed (enable secret) — and service password-encryption obscures line passwords.

VS
Vipul Sir — Lead Instructor, Attila Technologies20+ years in Cisco networking. Teaching CCNA, CCNP, CCIE & CyberOps in Ahmedabad since 2004.

Want hands-on training?

Learn this on real Cisco lab devices with placement support at Attila Technologies, Ahmedabad.

Start your networking career with Attila Technologies

Hands-on Cisco training, real lab devices and placement support in Ahmedabad.