CD usage Summary

Source: Internet
Author: User

When you need to process files in different paths, you often need to switch the directory in command line mode. In this case, you can use the directory jump command CD.

The full name of CD is change directory. the literal translation is to change the folder, that is, to jump to the directory and switch the path. It can be followed by the drive letter, complete path, and relative path.

When we open the command line window, the default directory is located in the path of the current user, for example: C:/Documents and Settings/lity>

In general, this directory does not have the files we want to process. We may need to jump to other directories.

The following describes common jumps:

1. Jump to the root directory of the current drive

CD [current drive letter]:/For example: cd c :/

Or a simpler CD/

2. Jump to another folder on the current drive

Take the Windows folder on drive C as an example and enter: cd c:/Windows

3. Jump to another drive

Take the jump from drive C to drive D as an example to directly enter: D:

4. Jump to another folder on another drive

Assume that the current disk is on drive C, and you need to jump to the Software Directory CD/d e:/software of drive E.

Note that the/d parameter must be added here. Otherwise, you cannot jump.

5. Jump to the previous directory

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.