Linux Command - pwd
pwd
- Print full name of current/working directory.
Options
option | description |
---|---|
-L, --logical | use PWD from environment, even if it contains symlinks |
-P, --physical | physical. avoid all symlinks. |
Description
logical path may contain symlinks. physical path doesn’t have symlinks.
To demonstrate logical and physical path:
1 | cd /tmp |
Example
print current working directory
1 | pwd |
print current logical path
1 | pwd -L |
print current physical path
1 | pwd -P |