The issue of resolving symlinks (symbolic links) is often addressed on
this forum, and on others. Related are the concepts of relative,
absolute (or full), and canonical (or resolved) pathnames. Two now
standard utilities are available, for example in GNU core utilities,
to resolve symlinks, and, among other things, produce canonical
pathnames: readlink
and realpath
.
Why do we need canonical paths?
Can you give examples where canonical paths are required, and non-canonical absolute paths will not be acceptable?
Side question: why do people get "canonical path" answers for "absolute path" questions? But is this technology or sociology ?