Linux common Commands (a)-Manage Files and directories command (3)-CD command

Source: Internet
Author: User

1. Command format

CD [Directory name]

2. Command function

Switch the current directory to the input directory

3. Case

CD/go to the root directory
CD ~ Go to the/home/user user directory
Cd/usr go to the USR directory in the root directory------------absolute path
CD test goes to-------relative path in the test subdirectory under the current directory

Cd.. Return to top level directory

CD-Returns the directory where the current directory was before

CD!$ Use the parameters of the previous command as CD parameters

Such as:
#ls/usr/local/src/
#cd!$ (i.e. enter: Cd/usr/local/src directory)

Linux common Commands (a)-Manage Files and directories command (3)-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.