Linux Directory Operations Command pwd

Source: Internet
Author: User

Linux Directory Operations Command PWD New Linux operations, Common command directory

      • PWD command
        • Grammar
        • Options
        • Parameters
        • Instance

PWD command

The PWD command is the full path to "view" the current working directory.

Grammar

pwd [选项]

Options
    • -P: Shows the actual path instead of using the link path
    • -L: Output connection path when directory connection link
    • The output connection path when the directory connection link is not added by default
Parameters

PWD commands do not normally add parameters

Instance
    1. PWD does not add any parameters by default
[[email protected] mnt]# cd /etc/init.d[[email protected] init.d]# ls -ld /etc/init.dlrwxrwxrwx. 1 root root 11 May  2 04:29 /etc/init.d -> rc.d/init.d[[email protected] init.d]# pwd/etc/init.d
    1. The pwd +p parameter shows a physical path instead of a link path
[[email protected] init.d]# ls -ld /etc/init.dlrwxrwxrwx. 1 root root 11 May  2 04:29 /etc/init.d -> rc.d/init.d[[email protected] init.d]# pwd/etc/init.d[[email protected] init.d]# pwd -P/etc/rc.d/init.d
    1. The pwd+l parameter shows the link path
[[email protected] init.d]# ls -ld /etc/init.dlrwxrwxrwx. 1 root root 11 May  2 04:29 /etc/init.d -> rc.d/init.d[[email protected] init.d]# pwd -L/etc/init.d

Linux Directory Operations 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.