pwd
file managementLinux/Unix
The pwd command is one of the most frequently used commands in Linux/Unix-like operating systems. pwd Print name of current/working directory
Quick Reference
Command Name:
pwd
Category:
file management
Platform:
Linux/Unix
Basic Usage:
pwd [options] [arguments]
Common Use Cases
Syntax
pwd [OPTION]...
Options
Option | Description |
---|---|
-L, --logical |
Use PWD from environment, even if it contains symlinks (default) |
-P, --physical |
Avoid all symlinks and report the physical directory |
--help |
Display help message and exit |
--version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the pwd
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
pwd