How to find Linux absolute path for a relative path

How to find Linux absolute path for a relative path in Linux?
asked Jan 19, 2013 by forum (2,150 points)

1 Answer

 
Best answer

We may need the absolute path on Linux when we only know the relative path. The readlink command does the trick.

To find out the absolute path for a relative path, e.g. ./:

$ readlink -f ./
answered Jan 20, 2013 by SA (14,760 points)
edited Aug 6, 2013

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...