>_
linuxcommand.dev
Home
Roadmap
Contact
EN
Dark
>_
>_
linuxcommand.dev
Home
Roadmap
Contact
Legal Notice
Privacy Policy
Language
DE
EN
Design
Dark
Startseite
›
PWD
Shell
PWD
Current working directory.
Ubuntu
Debian
Arch
Fedora
CentOS
SUSE
Alpine
macOS
FreeBSD
Last updated:
2026-05-12
Report error
Syntax
Copy
$
echo $PWD
Examples
Examples
$
echo $PWD
Examples
$
cd /tmp && echo $PWD
Typical use cases
Use current directory in scripts
cp file $PWD/backup
Note
Usually matches output of pwd.
Export
Text
JSON
Script