Print resolved symbolic links or canonical file names.
Synopsis
readlink [OPTIONS] FILE...
Description
Prints the value of a symbolic link, or with -f, the fully resolved canonical path.
Options
-f Canonicalize by following every symlink in every component of the given name recursively.
--help Display help and exit.
Examples
$ readlink mylink
Print the target of a symlink.
$ readlink -f ./a/../b
Print the canonical absolute path.
See Also
ln, stat, realpath