Full Name: Print Working Directory
Purpose: Displays the absolute path to print out the current working directory
format:pwd [OPTION] ...
Bash built-in command: Yes
Description
PWD prints out the path in two cases, and corresponds to two parameters "-L,--logical", "-P,--physical", these two parameters and the Linux soft link (symbolic links) is closely related. Soft links are similar to shortcuts in Windows, creating a copy to point to a real file (directory), and accessing a copy is equivalent to accessing a real file (directory).
The PWD targets the directory, assuming that a soft-link directory B is created for a directory A, and after entering the B directory,
- Logical path (-L): B directory path
- Physical path (-p): a directory path
Examples of Use:
# Print logical path, no parameter default is print logical path pwd pwd -l# Print physical path pwd -P
Linux command: PWD