Linux pwd

Linux pwd(present working directory) prints name of current/working directory.

All we have to do is to run the ‘pwd’ command without any options, and we’ll get the full path of current working directory in output.
pwd -L: Prints the symbolic path.
pwd -P: Prints the actual path.

Examples:
Following command prints the name of current working directory.

postgres@mongodb1:~$ pwd /var/lib/postgresql

Linux pwd

The default behavior of Built-in pwd is same as pwd -L and the default behavior of /bin/pwd is same as pwd -P.