Ram Rachum Asked: 2011-07-29 00:58:53 +0800 CST2011-07-29 00:58:53 +0800 CST 2011-07-29 00:58:53 +0800 CST Absolute symlink-resolving pwd 772 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? linux bash symlink 1 Answers Voted Best Answer EightBitTony 2011-07-29T01:01:49+08:002011-07-29T01:01:49+08:00 You should be able to use pwd -P tony@matrix:/var/vhosts$ pwd /var/vhosts tony@matrix:/var/vhosts$ pwd -P /srv/data/vhosts
You should be able to use
pwd -P