Linux and Unix pwd command

Quick links

About pwd
Syntax
Examples
Linux and Unix main page

About pwd

Print the name of the working directory.

Syntax

pwd [OPTION]...

Description

pwd prints the full pathname of the current working directory.

Options

-L, --logical If the contents of the environment variable PWD provide an absolute name of the current directory with no "." or ".." components, then output those contents, even if they contain symbolic links. Otherwise, fall back to default -P handling.
-P, --physical Print a fully resolved name for the current directory, in which all components of the name are actual directory names, and not symbolic links).
--help Display a help message, and exit.
--version Display version information, and exit.

Examples

pwd

Print the name of the current working directory.

Related commands

cd — Change the working directory.