cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1226
Views
2
Helpful
4
Replies

'?' doesn't work with the 'do' command in global config mode

dm.l5703
Level 1
Level 1

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.

4 Replies 4

Martin L
VIP
VIP

 

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 **

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'.

Correct answer

Thanks alot 

MHM

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?