How to find Linux absolute path for a relative path

How to find Linux absolute path for a relative path in Linux?

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 ./
Leave a Reply

Your email address will not be published. Required fields are marked *