REALPATH(1) General Commands Manual REALPATH(1)

# [NAME](#NAME)

realpath - Print the resolved path

# [SYNOPSIS](#SYNOPSIS)

**realpath** \[OPTION]... FILE...

# [DESCRIPTION](#DESCRIPTION)

Print the resolved path

# [OPTIONS](#OPTIONS)

[**-q**, **--quiet**](#q)

Do not print warnings for invalid paths

[**-s**, **--strip**](#s)

Only strip '.' and '..' components, but don't resolve symbolic links

[**-z**, **--zero**](#z)

Separate output filenames with \\0 rather than newline

[**-L**, **--logical**](#L)

resolve '..' components before symlinks

[**-P**, **--physical**](#P)

resolve symlinks as encountered (default)

[**-E**, **--canonicalize**](#E)

all but the last component must exist (default)

[**-e**, **--canonicalize-existing**](#e)

canonicalize by following every symlink in every component of the given name recursively, all components must exist

[**-m**, **--canonicalize-missing**](#m)

canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence

[**--relative-to** *&lt;DIR&gt;*](#relative)

print the resolved path relative to DIR

[**--relative-base** *&lt;DIR&gt;*](#relative~2)

print absolute paths unless paths below DIR

[**-h**, **--help**](#h)

Print help

[**-V**, **--version**](#V)

Print version

&lt;*files*&gt;

# [VERSION](#VERSION)

v(uutils coreutils) 0.12.0

2026-10-16

---

Document: realpath(1) from uutils 0.12.0-r4 (Chainguard OS)
Source: https://github.com/uutils/coreutils
