OS Manuals

/usr/bin/realpath

Cross-platform Rust rewrite of the GNU coreutils.

From uutils 0.12.0-r6 (os), captured 2026-11-07 by running realpath --help (exit 0). permalink

Print the resolved path

Usage: realpath [OPTION]... FILE...

Arguments:
  <files>...

Options:
  -q, --quiet                  Do not print warnings for invalid paths
  -s, --strip                  Only strip '.' and '..' components, but don't resolve symbolic links
                               [alias: --no-symlinks]
  -z, --zero                   Separate output filenames with \0 rather than newline
  -L, --logical                resolve '..' components before symlinks
  -P, --physical               resolve symlinks as encountered (default)
  -E, --canonicalize           all but the last component must exist (default)
  -e, --canonicalize-existing  canonicalize by following every symlink in every component of the
                               given name recursively, all components must exist
  -m, --canonicalize-missing   canonicalize by following every symlink in every component of the
                               given name recursively, without requirements on components existence
      --relative-to <DIR>      print the resolved path relative to DIR
      --relative-base <DIR>    print absolute paths unless paths below DIR
  -h, --help                   Print help
  -V, --version                Print version
Options (12)
OptionDescriptionSource
-q, --quietDo not print warnings for invalid pathshelp + man
-s, --stripOnly strip '.' and '..' components, but don't resolve symbolic links [alias: --no-symlinks]help + man
-z, --zeroSeparate output filenames with \0 rather than newlinehelp + man
-L, --logicalresolve '..' components before symlinkshelp + man
-P, --physicalresolve symlinks as encountered (default)help + man
-E, --canonicalizeall but the last component must exist (default)help + man
-e, --canonicalize-existingcanonicalize by following every symlink in every component of the given name recursively, all components must existhelp + man
-m, --canonicalize-missingcanonicalize by following every symlink in every component of the given name recursively, without requirements on components existencehelp + man
--relative-to DIRprint the resolved path relative to DIRhelp + man
--relative-base DIRprint absolute paths unless paths below DIRhelp + man
-h, --helpPrint helphelp + man
-V, --versionPrint versionhelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.