PWD ( 1 ) USER COMMANDSPWD ( 1 )


NAME

pwd - write working directory name

SYNOPSIS

pwd [ options ]

DESCRIPTION

pwd writes an absolute pathname of the current working directory to standard output. An absolute pathname is a pathname that begins with / that does not contains any . or .. components.

If both -L and -P are specified, the last one specified will be used. If neither -P or -L is specified then the behavior will be determined by the getconf parameter PATH_RESOLVE. If PATH_RESOLVE is physical, then the behavior will be as if -P were specified. Otherwise, the behavior will be as if -L were specified.

OPTIONS

-L
The absolute pathname may contains symbolic link components. This is the default.
-P
The absolute pathname will not contain any symbolic link components.

EXIT STATUS

0
Successful completion.
>0
An error occurred.

SEE ALSO

cd(1), getconf(1)

IMPLEMENTATION

version
pwd (AT&T Research) 1999-06-07
author
David Korn <dgkorn@gmail.com>
copyright
Copyright © 1982-2010 AT&T Intellectual Property
license
http://www.opensource.org/licenses/cpl1.0.txt