Absolute symlink-resolving pwd

I'm sitting in front of a Linux shell. I want to do something like pwd, except I want an absolute answer, i.e. I want any symlinks to be resolved to their true path. How can I do that?


Solution 1:

You should be able to use pwd -P

tony@matrix:/var/vhosts$ pwd
/var/vhosts
tony@matrix:/var/vhosts$ pwd -P
/srv/data/vhosts