Doscommand cd command instructions [graphic description]

Source: Internet
Author: User

A drive letter (for example, cd c :) is shared when the application is used. Enter cd/? In command line cmd /? The following help information can be displayed:

Column 1: the root directory is the top layer of the tree structure of the drive directory. To return to the root directory, enter "cd \" in the command line and the result is as follows:

Example 2: If you want to return to the previous directory, enter cd at the current command prompt. For example:

Example 3: If you want to enter the directory at the next level, enter the cd directory name at the current command prompt. Enter cd "documents and setting" at the command prompt C: \>, for example:

Example 4: If you want to change the directory c: \ drivers and settings of the current drive, go to the default directory of drive d, and enter d: In the current command line. The result is as follows:

Example 5 if the drive letter cd is used, the current directory of the drive is displayed. Enter cd e in the current directory of drive C, for example:

Example 6: If you want to change the default directory on drive d to D: \ word on drive C, enter cd d: \ word on the command line, for example:

If you do not believe it, you can verify that the default directory of drive d has changed.

Example 7: if the current directory is C: \ Documents ents and Settings, switch to d: \ word, enter cd d: \ word in the command line, press enter, and then enter d: as shown in Figure
Example 8: In the previous example, enter d: \ word twice. Enter cd d: \ word twice for the first time. Enter d: Can you enter d in one step: what about the \ word directory? The answer is yes. For example, you only need to add the parameter/D, for example, cd/d: \ word. The execution result is as follows: Note: this parameter is valid at 2 k/xp/vista/win7 /.

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.