realpath
v(uutils coreutils) 0.1.0
Options
--quiet,-q-
realpath-help-quiet
--strip,--no-symlinks,-s-
realpath-help-strip
--zero,-z-
realpath-help-zero
--logical,-L-
realpath-help-logical
--physical,-P-
realpath-help-physical
--canonicalize-existing,-e-
realpath-help-canonicalize-existing
--canonicalize-missing,-m-
realpath-help-canonicalize-missing
--relative-to=<DIR>-
realpath-help-relative-to
--relative-base=<DIR>-
realpath-help-relative-base
Examples
Display the absolute path for a file or directory:
realpath {{path/to/file_or_directory}}
Require all path components to exist:
realpath {{[-e|--canonicalize-existing]}} {{path/to/file_or_directory}}
Resolve ".." components before symlinks:
realpath {{[-L|--logical]}} {{path/to/file_or_directory}}
Disable symlink expansion:
realpath {{[-s|--no-symlinks]}} {{path/to/file_or_directory}}
Suppress error messages:
realpath {{[-q|--quiet]}} {{path/to/file_or_directory}}
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.