Hosting or Servers Logo

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

You Are Leaving Us

This link is being provided as a convenience and for informational purposes only it is not an endorsement or an approval of any of the products, services or opinions of the corporation or organization or individual.

Hostingorservers.com bears no responsibility for the accuracy, legality or content of the external site or for that of subsequent links.