![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 20:20 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » Common DOS Commands 2: |
| Printable Version 3,280 / 15 |
| Floor1 liuqing | Posted 2003-06-03 00:00 |
| 初级用户 Posts 2 Credits 106 | |
|
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. |
|
| Floor2 niceyou | Posted 2003-06-04 00:00 |
| 初级用户 Posts 4 Credits 120 | |
|
Thanks, please continue, hope to see more!
|
|
| Floor3 我爱DOS | Posted 2003-06-04 00:00 |
| 初级用户 Posts 52 Credits 317 | |
|
Strongly support this. It gets rid of the stiff bookish tone and really raises interest in learning. Hope you can keep posting.
|
|
| Floor4 黎明者 | Posted 2003-06-05 00:00 |
| 初级用户 Posts 5 Credits 123 | |
|
Thanks
|
|
| Floor5 凡秋 | Posted 2003-06-05 00:00 |
| 初级用户 Posts 2 Credits 113 | |
|
This kind of article is very good. Support you.
|
|
| Floor6 Thunder521 | Posted 2003-06-05 00:00 |
| 初级用户 Posts 3 Credits 115 | |
|
good!
Do you also have detailed materials about other commands? |
|
| Floor7 xiaoxiaoling | Posted 2003-06-05 00:00 |
| 初级用户 Posts 1 Credits 106 | |
|
It's already very detailed, so I'll say thanks here.
|
|
| Floor8 minisheep | Posted 2003-06-05 00:00 |
| 高级用户 Posts 233 Credits 830 | |
|
Come on, boss! There are still people who don't know this!? I'm dizzy! Everyone go find a book from 90~95 at the old book market! I remember even books from 98 still work!
|
|
| Floor9 如是大师 | Posted 2003-06-05 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
Hehe~ it has to be compatible...
|
|
| Floor10 yuxj073 | Posted 2003-06-06 00:00 |
| 初级用户 Posts 3 Credits 115 | |
|
Easy to understand. Thanks!!!
|
|
| Floor11 etb32 | Posted 2003-06-06 00:00 |
| 初级用户 Posts 7 Credits 134 | |
|
To the one in post #8, just because you know it doesn't mean there aren't newcomers who don't
don't be too arrogant |
|
| Floor12 chenyc604 | Posted 2003-06-06 00:00 |
| 初级用户 Posts 2 Credits 110 | |
|
Support you. Hope you post more in the future.
|
|
| Floor13 minisheep | Posted 2003-06-06 00:00 |
| 高级用户 Posts 233 Credits 830 | |
|
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.
Wouldn't d: work? Let me add a bit more! md is for creating a new folder! Format: md path\folder name! dir lists directories! The commonly used parameters are /p /a /w, just these! What are they used for? This command is harmless! I suggest you test it and you'll know! copy copies! Format! copy path\filename of the file to be copied destination path\filename I think there aren't really any other commonly used ones! |
|
| Floor14 林松 | Posted 2003-06-07 00:00 |
| 初级用户 Posts 2 Credits 110 | |
|
First time here, showing my support.
|
|
| Floor15 kaituozhe | Posted 2003-06-07 00:00 |
| 初级用户 Posts 2 Credits 110 | |
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |