How to - Use the Readlink command to find the canonical filename of a symbolic link
Posted on: 03/10/2011 11:18 AM

Linuxers posted a tutorial about how to use the Readlink command to find the canonical filename of a symbolic link

How to - Use the Readlink command to find the canonical filename of a symbolic link


Sometimes you may encounter a chain of files linked together using symbolic links. Readlink is a tool that can follow the chain and help you find out what is at the other end of it, the absolute file. Lets take an example of the Debian Alternate system. The file /usr/bin/editor is symlinked to /etc/alternatives/editor which in turn is linked to the actual editor binary - /bin/nano.



Printed from Linux Compatible (http://www.linuxcompatible.org/news/story/how_to__use_the_readlink_command_to_find_the_canonical_filename_of_a_symbolic_link.html)