Usage And Variation

  1. pwd -L displays the absolute path to the directory
  2. pwd -P displays the path without symbolic links
  3. pwd --help displays the pwd help menu
  4. pwd --version displays the version number

What is the PWD command?

Short for Print Working Directory, the pwd command simply outputs the full path of the currecnt directory you are working in. This is useful when navigating your file system and you need to know the path of a specific file



In the example above, the user is displaying their current directory in two different place. They first use the pwd command and it shows they are in the /home/osboxes directory. Then the user changes to the desktop before using pwd again to show they are in the /home/osboxes/Desktop directory.

Try it: