The system call you want is readlink (). Selects the path to the link, returns a string ( not always a valid path in the file system!) Stored in the link. See the man page for details ("man 2 readlink").
Please note that there is some ambiguity in your question. Perhaps you are asking how to say the βrealβ path in the file system, which is a bit more complicated.
source share