|PWD(1)||General Commands Manual||PWD(1)|
pwdutility prints the absolute pathname of the current working directory to the standard output.
The options are as follows:
PWDenvironment variable is an absolute pathname that references the current directory and doesn't contain path components of "." or "..", then
PWDis printed as the name of the current directory. Otherwise, act as if the
-Poption was given.
options override each other and the command's actions are determined by the
last one specified. The default if no options are given is
For an explanation of the directory hierarchy, see hier(7).
pwdutility exits 0 on success, and >0 if an error occurs.
pwdutility is compliant with the IEEE Std 1003.1-2008 (“POSIX.1”) specification, except the standard says the default if no options are given should be to behave as if
-Lhad been specified.
pwdutility appeared in Version 5 AT&T UNIX. Support for the
-Loption was added in OpenBSD 5.6.
pwdalso exists as a built-in to ksh(1), which may have a different default behavior.
|May 28, 2014||OpenBSD-current|