pwd.1 (936B)
- .\" 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-16
- .Dt PWD 1
- .Os
- .Sh NAME
- .Nm pwd
- .Nd print working directory
- .Sh SYNOPSIS
- .Nm
- .Op Fl L Ns | Ns Fl P
- .Sh DESCRIPTION
- .Nm
- prints the full path of the current working directory.
- .Sh OPTIONS
- .Bl -tag -width _L
- .It Fl L
- (default)
- Use the
- .Ev PWD
- environment variable
- if it contains an absolute pathname of the current directory,
- and doesn't contains dot or dot-dot components.
- .It Fl P
- Writes current directory, without any components referring to a symbolic link.
- .El
- .Pp
- If both
- .Fl L
- and
- .Fl P
- are passed, the last one applies.
- .Sh EXIT STATUS
- .Ex -std
- .Sh SEE ALSO
- .Xr getcwd 3
- .Sh STANDARDS
- .Nm
- should be compliant with the
- IEEE Std 1003.1-2024 (“POSIX.1”)
- specification.
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me