Linux Basic command parameter details of PWD

Source: Internet
Author: User

In Linux the basic commands are written as:

command [ parameter Options ] [ file or path ]

The command to use [ the file or path to be processed or consulted ] [This is the one that needs to be variable but must be matched with the command used ] .

Command Usage view method: Man helpIfon(query command using Parameters three commands)

case:650) this.width=650; "Width=" 213 "height=" "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/themes/default/images/word.gif") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/ >650) this.width=650; "width=" 257 "height=" to "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/themes/default/images/word.gif") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/ >

;650) this.width=650; "Width=" height= "src="/e/u261/themes/default/images/spacer.gif [style=] Background:url ("/e/u261/themes/default/images/word.gif") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/ > Use these three query commands to know how the command is used.

Command:pwd English original print work directory Chinese meaning (print working table of Contents) View current user's path

Case:

650) this.width=650; "Width=" 248 "height=" Notoginseng "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/themes/default/images/word.gif") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/ > typing pwd directly into the command line will display the current path.  As in the case, directly in the input command it will be the user's current path (shown in root / down root this path), this path is also the user's home directory.

parameter Query method for pwd command man pwd

Case:

650) this.width=650; "Width=" 326 "height=" "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ( "/e/u261/themes/default/images/word.gif") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>

Parameters:

1:-L--logical ( logic )

Use PWD from environment, even if it contains symlinks ( shows the current logical path )

Case:

650) this.width=650; "width=" 284 "height=" "src="/e/u261/themes/default/images/spacer.gif "style=" backgr Ound:url ("/e/u261/themes/default/images/word.gif") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/> only the logical path is shown when using- l

2:-P--Physical(physical)

Acoid All symlinks ( displays the physical full path of the current path )

Case:

650) this.width=650; "width=" 429 "height=" "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/> after adding- p shows that the original path in the current path is also a physical path (/etc/init.d is rc.d/init.d shortcuts) that show up.


Linux Basic command parameter details of 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.