August 1999
Intermediate to advanced
1000 pages
83h 9m
English
/usr/bin/pwd
Use the pwd (print working directory) command to display the absolute path name of the current working directory to standard output.
Both the Bourne shell, sh(1), and the Korn shell, ksh(1), also have a built-in pwd command.
Note
If you move the current directory or one above it, pwd may not give the correct response. Use the cd(1) command with a full path name to correct this situation.
The following example displays the current directory, changes to another directory, and displays the new current directory.
castle% pwd /export/home/winsor castle% cd /etc castle% pwd /etc castle%
See environ(5) for descriptions of the following environment ...
Read now
Unlock full access