Doscommand: CD command instructions

Source: Internet
Author: User

It is also one of the most common commands. As the name suggests, if you want to enter a directory, you should obviously use this command. 

Before talking about the CD command, let's talk about the meaning of the prompt. The currentThe prompt is C :\>

This C:It indicates that the current work disk is a drive C, that is, the current disk is a hard disk. This is followed by C: The \ below tells us,The current working directory is the root directory.. This>OnlySeparate the working directory from the command we want to enter,It has no other meaning. In this way, we can see from the prompt what is the current work disk and work directory, if you know this, then learn CDThe command becomes easy.

Well, what should we do if we want to enter the DOS directory? By the way, just enter CD dos.

Note that the prompt changesC: \ dos>. This tells us that our current working directory is C.The dos subdirectory in the root directory. If you want to return to the previous directory, type CD... and check that the prompt is changed back. Is it easy? Enter the sub-directory and enter CD + space + sub-directory name. If you want to return to the previous directory, enter CD... (two points ).

Now, let's go to the Windows subdirectory. What should I do? Of course, CD windows is entered. In the Windows directory, there is a sub-Directory: system. Go in and enter the CD system. Okay, pause. What should I do if I want to return it to the root directory? Using CD? Of course you can, but you have to use it twice. We have a better way. In fact, you only need to type CD \ three characters to return to the root directory at once. Try it on your own.

The purpose of the CD command is to allow usGo to any directory. We arrange files of different functions in different directories to facilitate management. However, when we want to use a file, we will get the directory where the file is located.For example, to use WPS, you need to go to the directory where WPS is located; to use Windows, you need to go to the directory where windows is located. In fact, you have learned the CD command, and you can reach any directory on the disk. Note that if you want to enter a directory other than the current disk, you must enter the drive letter and press enter before changing the current disk to another disk, you can use the CD command to reach the directory you want to go.

 

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.