readlink
v(uutils coreutils) 0.1.0
Options
--canonicalize
,-f
-
readlink-help-canonicalize
--canonicalize-existing
,-e
-
readlink-help-canonicalize-existing
--canonicalize-missing
,-m
-
readlink-help-canonicalize-missing
--no-newline
,-n
-
readlink-help-no-newline
--quiet
,-q
-
readlink-help-quiet
--silent
,-s
-
readlink-help-silent
--verbose
,-v
-
readlink-help-verbose
--zero
,-z
-
readlink-help-zero
Examples
Get the actual file to which the symlink points:
readlink {{path/to/file}}
Get the absolute path to a file:
readlink {{[-f|--canonicalize]}} {{path/to/file}}
The examples are provided by the tldr-pages project under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.