OpenBSD manual page server

Manual Page Search Parameters

REALPATH(1) General Commands Manual REALPATH(1)

realpathprint the canonicalized absolute pathname

realpath [-q] file

The realpath utility uses realpath(3) 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:

Do not print errors.

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

readlink(1), realpath(3)

The realpath utility first appeared in OpenBSD 7.1.

October 13, 2021 OpenBSD-current