---
name: "realpath"
section: "1"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["linux", "freebsd", "openbsd", "macos"]
url: "https://new.carta.tech/realpath"
---

# realpath(1)

print the canonicalized absolute pathname

## NAME

**realpath** – print the canonicalized absolute pathname

## SYNOPSIS

**realpath** \[**-q**\] *file*

## DESCRIPTION

The **realpath** utility uses [realpath(3)](/realpath/3.md) to resolve all symbolic links, extra “/” characters and references to */./* and */../* in *file*, and prints the absolute pathname on standard output.

The options are as follows:

- **-q**

  Do not print errors.

## EXIT STATUS

The **realpath** utility exits 0 on success, and \>0 if an error occurs.

## SEE ALSO

[readlink(1)](/readlink/1.md), [realpath(3)](/realpath/3.md)

## HISTORY

The **realpath** utility first appeared in OpenBSD 7.1.
