Common DOS Commands 2:
——cd
We've already used the cd command before, everyone surely remembers it, right? cd is the abbreviation of the English change directory, and it's also one of the most commonly used commands. Just as the name suggests, if you want to enter a directory, then obviously this is the command to use.
Before talking about the cd command, let's first discuss what the prompt means. The current prompt is c:\>
This c: means the current working drive is drive C, that is, the current drive is the hard disk. The \ right after c: tells us that the current working directory is the root directory. The function of this > is only to separate the working directory from the command we are going to type; it has no other meaning. In this way, we can tell from the prompt what the current working drive and working directory are. If you understand this point clearly, then learning the cd command becomes easy and effortless.
Alright, now if we want to enter the dos directory, what should we do? Right, just type cd dos directly.
Notice that the prompt has changed, becoming c:\dos>. This tells us that our current working directory is the dos subdirectory under the root directory of drive C. If you want to go back to the upper-level directory, just type cd .., and you'll see the prompt change back again. Isn't it very simple? To enter a subdirectory, just type cd + space + subdirectory name. If you want to return to the upper-level directory, type cd .. (two dots).
Now practice a bit: if you want to enter the windows subdirectory, what do you do? Of course, type cd windows. Under the windows directory, there is another subdirectory: system. Go into it as well by typing cd system. Alright, pause a moment. At this point, if I want to return to the root directory, what should I do? Use cd ..? Of course you can, but you'd have to use it twice. We have a better way: actually, you only need to type the three characters cd\ to return to the root directory in one step. Try it yourself.
The purpose of the cd command is to let us go to any directory. We place files of different functions into different directories for convenience of management, but when we want to use a certain file, we have to go to the directory where that file is located. For example, to use wps, you have to go to the directory where wps is; to use windows, you have to go to the directory where windows is. In fact, once you've learned the cd command, you can reach any directory on the disk. But there is one point to remind you of: if you want to go to a directory on a drive other than the current one, you must first enter the drive letter and press Enter. After the current drive changes to the other disk, only then can you use the cd command to reach the directory you want to go to.
大家好啊!!
希望大家以后给我多多的指教啊!!!
希望大家以后给我多多的指教啊!!!








