pwd writes the absolute pathname of the current working directory to the standard output.
The following options are available:
-L
If the PWD environment variable is an absolute pathname that contains neither "/./" nor "/../" and references the current directory, then PWD is assumed to be the name of the current directory.
-P
Print the physical path to the current working directory, with symbolic links in the path resolved.
The default for the
pwd command is
-P.
pwd is usually provided as a shell builtin (which may have a different default).