pwd displays the absolute pathname of the current directory in bash.
pwd [-LP]
where:
The return status is 0 unless an error occurs while reading the name of the current directory or an invalid option is supplied.
To print the Logical [default] and Physical working directories, use pwd -L and pwd -P
$ pwd -L
/tmp/bar/baz
$ pwd -P
/tmp/foo