Linux Shell Learning Note two shell command line PWD CD

Source: Internet
Author: User

Start Linx Shell's first article today

Today describes how PWD and CDs are used.

The pwd means "Print working Directory", which displays the current location.

PWD also has other available parameters-L (uppercase),-p (uppercase)

-L is the same as the PWD showing the current user's location

-p Display the user's current physical location and PWD are the same

In fact, you can use PWD directly.

CD can simply think of directory switching

For example, currently on the/root/desktop, you can switch directly to the/ROOT/Desktop/tools folder location and the CD command under Windows similar

There are other different uses of CDs

CD back to the current user's host directory

Cd-back to previous working directory

Cd.. Back to the top level directory

Cd.. /.. Back to upper level directory

Cd/bin switch to the bin in the root directory

The CD bin switches to the current directory in the bin (bin can make any folder)

In addition, I am also the first time to learn Linux, it is inevitable that the directory structure is not understood, such as to enter the desktop directory under/root, because the language version of the English version of the desktop, the Chinese version of the table, often confused. So I like cd/root to go into the desktop under root

This summary concludes!

Linux Shell Learning Note two shell command line PWD CD

Related Article

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.