Linux
linuxlinux-commandsReferenceBeginner
Print Working Directory (pwd)
Display the absolute pathname of the current working directory in Linux and Unix shells.
Verified: 2026-09-30
Tested on:linux Ubuntu 24.04 / Debian 12
Platforms:
linuxmacos
#linux#pwd#navigation#cli
Command
pwd
Short Description
pwd (Print Working Directory) outputs the exact absolute directory path where your current shell session is located.
Examples
1. Basic Usage
pwd
# Output: /home/ubuntu/projects2. Print Physical Path (Resolving Symlinks)
pwd -P