0

Possible Duplicate:
pwd without symlinks

Imagine I have a directory

/home/me/dir

and a symbolic link to it called

/home/me/dirlink

now if I enter dirlink and use pwd, it of course prints the 2nd one. Is there a flag to make it resolve the symlink and print the 1st one?

marked as duplicate by Mat, Michael Mrozek Dec 2 '12 at 18:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

Either try /bin/pwd or try pwd -P

  • oops, read Mat's comment above too late... sorry. – pat Dec 2 '12 at 15:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.