"Linux" CD command

Source: Internet
Author: User

Use

The main function of the CD command is to transform the directory


Full Name

The full name of the CD is change Directory


Case

Here are some basic CD command actions ( Blue fonts represent explanations)

[[email protected] ~]# on behalf of username (root), hostname (bigdata), Current path (~, current user's home directory), permission flag bit (#代表root, $ on behalf of ordinary users)

[[Email protected] ~]# CD ~hadoop representative goes to the home directory of the user of Hadoop, that is Home/hadoop

[[Email protected] hadoop]# CD ~ means to return to your home directory, that is/root

[email protected] ~]# CD . To go to the current top-level directory, which is the upper-level directory of/root

[[Email protected]/]# CD- indicates back to that directory (this refers to the previous working directory)

[[email protected] ~]# cd/usr/local indicates to directory/usr/local/

[email protected] local]# CD. /sbin represents the sbin under the relative path/usr/local

"Linux" CD command

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.