readlink
Print what symlink points to or produce canonical filepaths (POSIX, toybox)
Syntax:
readlink [option...] file...
Runs on:
QNX OS
Options:
- -e
- Produce canonical path to existing entry (fails if the path is missing).
- -f
- Produce full path (fails if directory is missing).
- -m
- Ignore missing entries and show where path would be.
- -n
- Don't output a trailing newline.
- -q
- Be quiet (no error messages).
- -z
- Output NUL instead of newline.
- file
- The pathname of a file.
Description:
The readlink utility shows what the symbolic link points to if no options are used. An error is returned if there is no symlink. Canonical paths (all symlinks/./.. that are resolved) can be produced using the options listed above.
This utility is provided as part of the toybox package. For information on how to enable it, see toybox.
Contributing author:
Rob Landley and the toybox project (see https://landley.net/toybox/).
Page updated: