07-12-2021 09:30 PM
With the 'do' command, you can execute privileged EXEC mode commands in global configuration mode. For example:
Router(config)#do show ip route
However, the option of entering '?' doesn't work, as well as pressing TAB to autocomplete command. For example:
Router(config)#do show ip ?
just returns the following:
LINE <cr>.
so if you want to see all the options for the 'show ip' command, you have to return to the privileged EXEC mode. I find this cumbersome, and I was wondering why was the Cisco IOS designed this way.
07-13-2021 01:59 PM
Anytime you use " do " command Cisco assumes you know what you doing and/or you have some years of using CLI behind you. In other words, "do " command is a shortcut meant to be used by experienced users. Or this is not on purpose but just a quark of Linux command line.
Regards, ML
**Please Rate All Helpful Responses **
09-20-2023 07:31 PM
Sorry but this is the worst reply ever, lacking any technical facts and reason. I'm pretty sure that if they allow autocomplete on any other modes for experienced users, they would also add them when you're running 'do'.
09-20-2023 11:11 PM
09-22-2023 06:27 PM
You're not OP, just a colleague of the person who gave a terrible answer. What is this? Cisco mods are trolling real end users?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide