To detect absolute name of a given file, run following command:

readlink -f <file_name>

For example:

$ readlink -f ./test
/home/leonid/test

Leave a Reply