readlink
Readlink is a command-line utility in Unix-like operating systems used to display the target of a symbolic link or to resolve a path to its canonical form. It is commonly provided by the GNU coreutils package on Linux and is also available on BSD-derived systems, with similar behavior in some environments.
By default, readlink prints the value stored in a symbolic link, i.e., the immediate target that the
Many implementations offer options to resolve a full, absolute path by following all links and normalizing
Usage and portability: readlink is widely available but its options and exact semantics can vary between GNU
Exit status: The command typically returns a zero exit status on success and a non-zero status if
Examples: readlink /path/to/link; readlink -f /path/to/link (when supported).