pwd(1)pwd(1)NAMEpwd - working directory name
prints the path name of the working (current) directory.
recognizes the following options:
Display the directory with the name of the symbolic link if any.
If the environment variable contains an absolute path
name of the current directory that does not contain the
file names (dot) or (dot-dot), writes this path name to
standard output. Otherwise, the option behaves like the
Display the actual physical directory path.
Directories of symbolic link types are not displayed.
If both and are specified, the last one applies. If neither nor is
specified, the default option is:
from UNIX 2003 environment onwards; see standards(5).
For information about the UNIX Standard environment, see standards(5).
determines the language in which messages are displayed.
If is not specified in the environment or is set to the empty string,
the value of is used as a default for each unspecified or empty vari‐
able. If is not specified or is set to the empty string, a default of
"C" (see lang(5)) is used instead of
If any internationalization variable contains an invalid setting,
behaves as if all internationalization variables are set to "C". See
International Code Set Support
Single- and multibyte character code sets are supported.
Possible file system trouble; contact system administrator.
Current directory has been removed (usually by a different
Use command to move to a valid directory (see cd(1)).
If your home directory is and the command is executed from the
home directory, typing produces the following display:
In the following example, a symbolic link, points to the direc‐
tory. Then the command displays the actual directory:
The command displays the directory with the symbolic link:
In the following example, there is no symbolic link. The dis‐
played directory is the same for both the and options.
was developed by AT&T and HP.
SEE ALSOcd(1), csh(1), sh(1), sh-posix(1), standards(5).