Forever & AlwaysLINUX COMMAND ATLAS

LINUX COMMAND ATLAS · COMMAND GUIDE

Linux pwd command

Print the full path of your current working directory.

Shell builtin

Syntax

Command form
pwd [-L | -P]

Common options

3 options
OptionWhat it does
-LShow the logical path, including symbolic links (default).
-PResolve symbolic links and show the physical path.
--helpDisplay help (GNU Bash/Coreutils variants).

Usage examples

2 examples

Print the full path of your current working directory.

pwd

Print the physical path after resolving symbolic links.

pwd -P

Notes

pwd is commonly a shell builtin; behaviour can differ from the external utility.