pwd - Return the working directory name
Format
pwd
Description
pwd displays the absolute path name of the working directory to standard output.
If the current working directory is a symbolic link to another directory, the path name that is displayed depends on the setting of the shell's logical flag. See set for more information.
Usage notes
pwd is a built-in shell command and is also a separate utility.
Localization
pwd uses
the following localization environment variables:
- LANG
- LC_ALL
- LC_MESSAGES
- NLSPATH
See Localization for more information.
Exit values
0
- Successful completion.
1
- Inability to determine the working directory.
Portability
POSIX.2, X/Open Portability Guide, UNIX systems.
Related information
set, sh