The pwd command
Yaser Rahmati | یاسر رحمتی
The pwd
stands for Print Working Directory. It prints the path of the current working directory, starting from the root.
Example:
Syntax:
Tip:
You can also check this by printing out the $PWD
variable:
Options:
Short Flag
Long Flag
Description
-L
--logical
If the environment variable $PWD contains an absolute name of the current directory with no "." or ".." components, then output those contents, even if they contain symbolic links. Otherwise, fall back to default (-P) behavior.
-P
--physical
Print a fully resolved name for the current directory, where all components of the name are actual directory names, and not symbolic links.
--help
Display a help message, and exit.
--version
Display version information, and exit.
Last updated