used in Linux pwd command to view the full path of the current working directory. Simply put, you will have a current working directory every time you operate in a terminal.
When unsure of the current location, PWD is used to determine the exact location of the current record within the file system.
1 . Command format:
???? Pwd? [ Options]
2 . Command function:
???? View the full path to the current working directory
3 . Common parameters:
Normally without any parameters
If the directory is a link:
Format: Pwd-p shows the actual path, not the link path.
4 . Common examples:
Example 1: Use the. pwd command to view the full path of the default working directory
Command:
Pwd
Output:
?
Example 2: Use the. pwd command to view the specified folder
Command:
Pwd
Output:
Example three: When the directory connection link, pwd?-p?? displays the actual path, not the connection path; pwd shows the connection path
Command:
Pwd-p
Output:
????
Example 4:/bin/pwd
Command:
/bin/pwd? Options
Options:
- L directory Connection link, output connection path
-P Output Physical path
Output:
???? instance five: The current directory is deleted, and the PWD command still displays that directory
Output:
Linux command detailed-pwd