$linuxjunkies
>

pwd

also: print working directory

pwd (print working directory) is a command that displays the full path of the current directory in the filesystem.

pwd outputs the absolute path of the directory you are currently in within the shell. This is useful when navigating the filesystem to confirm your location or to use the path in scripts.

For example, if you open a terminal and are in your home directory, typing pwd might display /home/username. After navigating to a subdirectory with cd Documents, running pwd again shows /home/username/Documents.

The command has two common options: -L (logical) respects symbolic links in the path, while -P (physical) resolves all symbolic links to show the actual filesystem location.

Related terms