Finding current path?

Unanswered Question
Nov 11th, 2008
User Badges:
  • Purple, 4500 points or more

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.



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Edison Ortiz Tue, 11/11/2008 - 21:09
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

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



John Blakley Wed, 11/12/2008 - 02:36
User Badges:
  • Purple, 4500 points or more

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


ariesc_33 Tue, 11/11/2008 - 23:26
User Badges:

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


This Discussion