Linux command: PWD

Source: Internet
Author: User

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,

    1. Logical path (-L): B directory path
    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.