cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1200
Views
5
Helpful
3
Replies

Finding current path?

John Blakley
VIP Alumni
VIP Alumni

There's the "undocumented" do command in Cisco devices that allow you to run a exec command from global config like:

Router(config)# do sh run <enter>

This will show me the run command. Is there any equivalent to the Linux pwd command? Say that I'm in a class under a policy-map, but I don't remember which one. Is there a command that I can give to get the "present working directory?"

This would be SO cool if it exists, or maybe Cisco could put it in.

Thanks!

John

HTH, John *** Please rate all useful posts ***
3 Replies 3

Edison Ortiz
Hall of Fame
Hall of Fame

do show history command will provide the trail on how you got there.

__

Edison.

Thanks Edison! That's as close as I'm probably going to get. :-)

--John

HTH, John *** Please rate all useful posts ***

ariesc_33
Level 1
Level 1

in unix, it doesnt show in the screen on which directory you are working on, that is why you need the "pwd" command. in cisco routers, you can actually see the path already

Router(config-policy-list)# match

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: