pwd

NAME

pwd - return working directory name

SYNOPSIS

pwd

DESCRIPTION

The pwd(1) utility writes the absolute path name of the current working directory to the standard output.

The pwd(1) utility can handle path names longer than PATH_MAX, if the path names can be returned by getcwd(2).

DIAGNOSTICS

The pwd(1) utility exits 0 on success, and >0 if an error occurs. Known errors are:

1
Out of memory.
2
Error in the underlying getcwd(2) call.

SEE ALSO

cd(1)

getcwd(2)