Displays the path name of the working directory.
The pwd command writes to standard output the full path name of your current directory (from the root directory). All directories are separated by a / (slash). The root directory is represented by the first /, and the last directory named is your current directory.
This command returns the following exit values:
Item | Description |
---|---|
0 | Successful completion. |
>0 | An error occurred. |
Entering:
pwd
displays the current directory as:
/home/thomas
Item | Description |
---|---|
/usr/bin/pwd | Contains the pwd command. |