DOS command: cd command usage instructions

Source: Internet
Author: User
Tags root directory

We have already used the CD command, we must remember it. The CD is an abbreviation for change directory (changing directory) and is one of the most commonly used commands. As the name suggests, if you want to enter a directory, it is obvious that this command should be used.

Before we speak the CD command, let's talk about what the prompt means. Now the prompt is c:\>

This c: Indicates that the working disk is now a C disk, that is, the current disk is a hard disk. This is followed by C: the back of \ tells us that the current working directory is the root directory. This > function is only to separate the working directory from the commands we want to enter, and there is no other meaning. This way, we can see from the prompt what the current work disk and working directory are, and if you know this, then learning the CD command becomes easier. This article is published in http://bianceng.cn (computer science)

OK, now we want to go into the DOS directory, what should we do? By the right, just enter the CD DOS on the line.

You notice that the prompts have changed and become c:\dos>. This tells us that our current working directory is a DOS subdirectory under the C-packing directory. If you want to return to the previous level of the directory, type the CD ... , look at the prompt and turn back again. Is it simple? Enter the subdirectory on the cd+ space + subdirectory name, want to return to the previous level directory, enter the CD. (two points).

Now you're going to practice, how do I get into the Windows subdirectory? Of course, enter CD windows. In the Windows directory, there is also a subdirectory: System, go in and see, Input CD system, OK, pause, then I want to return to the root directory, what should I do? With a CD. Do you? That's OK, but it's going to take two of times. We have a better way, in fact, just type cd\ three characters can be a while back to the root directory, try it yourself.

The purpose of the CD command is that we can go to any directory. We have separate files for different functions in separate directories for easy management, but when we want to use a file, we get the directory where the file resides. For example, to use WPS, you need to go to the directory where WPS is located, and to use Windows, you need to go to the directory where Windows resides. In fact, you learn the CD command and you can get to any directory on the disk. One caveat, though, is that if you want to go to a directory other than the current disk, you can use the CD command to get to the directory you want, if you want to enter the letter, and then when the current disk becomes a different disk.

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.