realpath1
Print the canonicalized absolute pathname
Usage
realpath [-q]
file
Overview
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:
-
-q -
Do not print errors.
Exit status
The realpath utility exits 0 on success, and >0 if an error occurs.
Releases
Unchanged in 11 releases since OpenBSD 7.1.