Print the Working Directory With the Linux pwd Command

The Linux pwd command is used to print the working directory of the user. This command is useful for finding out where you are located in the file system.

Inside the box there are the three most common examples of its use in a Linux environment.

Example 1: To view the current working directory, simply type the command pwd: $ pwd

Example 2: To view the full path of the current working directory, use the command pwd with the -P option: $ pwd -P

Example 3: To view the full path of the current working directory including any symlinks, use the command pwd with the -L option: $ pwd -L


Use the command pwd ---version to find out the version of pwd that is in use on your Linux system.

Linux pwd version Command