How to get full path of a file?

Use readlink:

readlink -f file.txt

Leave a Comment