---
name: "uu-realpath"
section: "1"
platform: "linux"
package: "uutils-coreutils"
version: "0.12.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/uu-realpath"
---

# uu-realpath(1)

Print the resolved path

## NAME

realpath - Print the resolved path

## SYNOPSIS

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

## DESCRIPTION

Print the resolved path

## OPTIONS

- **-q**, **--quiet**

  Do not print warnings for invalid paths

- **-s**, **--strip**

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

- **-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

- \<*files*\>

  ## VERSION

v(uutils coreutils) 0.12.0
