realpath.1 (1233B)
- .\" utils-std: Collection of commonly available Unix tools
- .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- .\" SPDX-License-Identifier: MPL-2.0
- .Dd 2024-03-24
- .Dt REALPATH 1
- .Os
- .Sh NAME
- .Nm realpath
- .Nd print resolved path
- .Sh SYNOPSIS
- .Nm
- .Op Fl E Ns | Ns Fl e
- .Op Fl n Ns | Ns Fl z
- .Op Fl s
- .Ar path...
- .Sh DESCRIPTION
- The
- .Nm
- utility resolves
- .Pa \&. ,
- .Pa .. ,
- and symlinks used in each
- .Ar path
- to print an absolute pathname.
- .Pp
- When no flags are passed, this implementation assumes the behavior of
- .Fl E .
- .Sh OPTIONS
- .Bl -tag -width ee
- .It Fl E
- Do not fail when the final path component does not exists and it's parent is a directory.
- .It Fl e
- Fail when
- .Ar path
- does not exists.
- .It Fl n
- Do not print a trailing separator.
- .It Fl s
- Do not resolve symlinks.
- .It Fl z
- Use NULL byte as separator instead of newlines.
- .El
- .Sh EXIT STATUS
- .Ex -std
- .Sh SEE ALSO
- .Xr realpath 3
- .Sh STANDARDS
- .Nm
- should be compliant with the
- IEEE Std 1003.1-2024 (“POSIX.1”)
- specification.
- .Pp
- The options
- .Fl n ,
- .Fl s
- and
- .Fl z
- and support for multiple
- .Ar path
- arguments are extensions present for compatibility with existing software.
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me