The CD command for the CentOS Linux system command

Source: Internet
Author: User
Tags parent directory



The Linux CD command is the most common and basic command statement in Linux, and the application of other statements requires the assistance of the CD command, which is used to change the current directory.

Command format:

CD [Directory name]


Examples of commands:

1), CD- go back to your last directory

CD back to the user's home directory

CD ~ back to the user's home directory

Cd.. back to the parent directory of the current directory (the top level directory of the current directory)

Directory ofCD ~yonghu Yonghu

CD/ to root directory

Cd.. /.. /dir2/dir3 This relative path will move you up two levels, switch to the root directory, then go to dir3 and go to the DIR2 directory.


This article is from the "Eight Miles Bridge" blog, please be sure to keep this source http://baliq.blog.51cto.com/5984262/1688192

The CD command for the CentOS Linux system command

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.