CD switch working directory under Linux

Source: Internet
Author: User
Tags parent directory

Linux under CD command

Function: Toggle the current working directory

Use format: cd [directory name] (CD and directory separated by spaces)

Common commands

1. Enter the user's home directory

Cd

CD $home

CD ~

The above three names can be implemented into the user's home directory of the task

2. return to the directory where it was before entering this directory

CD-

3. return to the parent directory

Cd..
If the current directory is "/", then the "/" after execution;

".." Meaning for the parent directory

4. return to the top level two directory;

Cd.. /..

5. Go to the system root directory

CD/

For example: cd/home/cc/it.dengchao.org, can go to the specified directory

6. Go to the directory under the current user directory

CD sys/....

Note: Fifth and six are the difference between the current dir front-end or not, and some to the root directory, none is based on the current user directory.

This article is from the "I have patience with myself" blog, please be sure to keep this source http://9607474.blog.51cto.com/9597474/1683152

CD switch working directory under Linux

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.