Beginner Package: coreutils / bash builtin

pwd

Print the current working directory.

Syntax

pwd

Description

pwd prints the full absolute path of the directory you are currently in — useful in scripts, or simply to confirm where you ended up after a series of cd commands.

Examples

pwd
Print the full path of the current directory

Applies to

Ubuntu Debian Linux Mint RHEL CentOS / Rocky / AlmaLinux Fedora Arch Linux openSUSE Alpine Linux