If I do pwd
I notice it uses whatever symlinks I used to get into the current directory. Can I get it to tell me the "real" directory I'm in … i.e. the path from the root to my current directory without the use of any symlinks?
Pwd Command – How to Get Path Without Symlinks?
symlink
Best Answer
According to the POSIX manpage for
pwd
, the-P
option may be of use:Thus
should be what you need.