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?
Asked
Active
Viewed 169 times
4

Ram Rachum
- 5,231
- 7
- 34
- 46
1 Answers
9
You should be able to use pwd -P
tony@matrix:/var/vhosts$ pwd
/var/vhosts
tony@matrix:/var/vhosts$ pwd -P
/srv/data/vhosts

EightBitTony
- 9,311
- 1
- 34
- 46