Shell
PWD
Current working directory.
Ubuntu
Debian
Arch
Fedora
CentOS
SUSE
Alpine
macOS
FreeBSD
Verified: 2026-05-12
Syntax
$echo $PWD
Examples
$echo $PWD
$cd /tmp && echo $PWD
Typical use cases
?
Standard usage
PWD --help
Note
Usually matches output of pwd.
Export