PWD
Logical current working directory.
Return working directory name
pwd [{-L | -P}]
The pwd utility writes the absolute pathname of the current working directory to the standard output.
Some shells may provide a builtin pwd command which is similar or identical to this utility. Consult the builtin(1) manual page.
The options are as follows:
-L
Display the logical current working directory.
-P
Display the physical current working directory (all symbolic links resolved).
If no options are specified, the -L option is assumed.
Environment variables used by pwd:
PWD
Logical current working directory.
The pwd utility exits 0 on success, and >0 if an error occurs.
Show current working directory with symbolic links resolved:
$ /bin/pwd -P /usr/home/fernape
Show the logical current directory. Then use file(1) to inspect the /home directory:
$ /bin/pwd /home/fernape $ file /home /home: symbolic link to usr/home
163 releases since Mac OS X 10.0; the text changed 3 times.