Linux using pwd command to view the full path of the "current working directory" of. To put it simply, every time you operate the terminal, you will have a current working directory.
Not sure when the current location, it will use pwd to determine the exact location of the current directory in the file system.
-
Format:
pwd [options]
-
Function:
Check the "current working directory" full path
-
Common parameters:
without any parameters, in general
if the lists are linked:
Format: pwd -P shows the actual path, rather than using a connection (link) path. -
Common examples:
Example 1: View the complete path to the default working directory with the pwd command
Example 2: Use the pwd command to view the specified folder
Example 3: The connection link directory, pwd -P shows the actual path, rather than using a connection (link) path; pwd shows the connection path
command:
pwd -P
Example 4: / bin / pwd
Command: / bin / pwd [options]
Options:
When -L directory connection link, a connection path output
-P output physical path
Examples of five: the current directory is deleted, but still shows the directory pwd command