PWD(1)

NAME
pwd - return working directory name

SYNOPSIS
pwd

DESCRIPTION
The pwd utility will write an absolute pathname of the current working directory to standard output.

OPTIONS
None. The option -- is not supported either.

STDOUT
The pwd utility output will output an absolute pathname of the current working directory:

"%s\n", <directory pathname>

EXTENDED DESCRIPTION
pwd uses the system call getcwd(2) where available (Linux, FreeBSD). Otherwise it recursively descends the directory tree from the current directory to root, checking every entry (using getdents(2) ).

EXIT STATUS
The following exit values are returned:

0   Successful completion.

>0  An error occurred.

CONSEQUENCES OF ERRORS
If an error is detected, nothing will be written to standard output and the exit status will not be zero.

STANDARDS
The ASMIX pwd utility is expected to conform to The Open Group Single Unix 2 Commands and Utilities specification.

SEE ALSO
cd(1), getcwd(2)