A day linux commands (3): pwd command

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.

  1. Format:

    pwd [options]

  2. Function:

    Check the "current working directory" full path

  3. 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.

  4. Common examples:
    Example 1: View the complete path to the default working directory with the pwd command
    Here Insert Picture Description
    Example 2: Use the pwd command to view the specified folder

Here Insert Picture Description
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

Guess you like

Origin blog.csdn.net/fight252/article/details/90340518