Tuesday, April 25, 2017

Following a symbolic link in linux

Sometimes a link is pointing to a link, that is pointing to a link etc. It is a pain to resolve all the links and find which is the final file.
But there is a command that you can use to make things easier, and it is called readlink.

readink -f filename will traverse all the paths and print out the final filename

No comments:

Post a Comment