China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-02 07:38
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Quickly Master Common DOS Commands [Original] View 6,648 Replies 46
Original Poster Posted 2002-10-31 00:00 ·  美国
高级用户
★★
Credits 667
Posts 135
Joined 2002-10-25 00:00
23-year member
UID 62
Gender Male
Status Offline
help you to master dos quickly

basic commands:
1. d: ----change drive
2. dir ----list file
3. cd ----come to a directory
4. copy ----copy a file or many files
5. type ----show file conment
6. ren ----rename a file
7. del ----delete a file
8. cls ----clear the screen
9. xcopy ----copy a group of files in a directory
10.attrib ----show or change file''s charckter
11.edit ----a editor for write a file
12.chkdsk ----check a disk
13.tree ----list directory tree
14.format ----format a disk for dos
15.md ----make a directory
16.rd ----delete a directory
17.deltree ----delete a directory with all it''s sub directory
18.time ----show system time
19.prompt ----change the prompt


ok! now base use-way:
1. d: ----c:>d:a: ----change to drive a:
2. dir ----c:>dir]
eg: c:>dir a: ----list files in disk a
c:>dir l*.* ----list files whose first letter is "l"
c:>dir/w/p ----list files as wide ( 5 files in a line)
and page
****** c:>dir , ----list
****** c:>dir/a
3. cd ----c:>cd
eg: c:>cd yln ----come to directory named as "yln"
c:yln>cd.. ----come back pre-directory
c:>cd yln\tool ----come to multiple(deep layer) directory
c:yln\tool\cd\..\game ---- turn to another directory
4. copy ----c:>copy file1 file2
eg: c:yln\tool>copy qe.exe a: ----copy qe.exe to sidk a
c:yln\wps>copy xue1.wps+xue2.wps xue3.wps
---- let xue1.wps and xue2.wps 合成 a new
file named as xue3.wps
c:yln\wps>copy xue1.wps xue01.wps ---- copy xue1.wps as new
name
5. type ----c:>type filename
eg: c:yln\wps>type hlp.txt|more ----show hlp.txt when a page
full then pause and wait
you press any key continue
6. ren ----c:>ren file1 file2
eg: c:>ren a.bat b.bat ----a.bat rename to b.bat
7. del ----c:>del filename
eg: c:>del c:\yln\wps\xue1.bak ----del the file named xue1.bak
8. cls ----c:>cls ----clear the screen
9. xcopy ----c:>xcopy
eg: c:yln>xcopy \wps /s/e ----copy the directory "wps" and all
it''s sub-directory enclude empty
sub-directory
10. attrib ----c:>attribfilename
eg: c:yln\wps>attrib +h +r xue1.wps----set file attrib (hide,readonly)
11. edit ----c:>edit
eg: c:>edit \yln\wps\wue3.txt ----edit file wue3.txt
12. chedsk ----c:>chkdsk ----check d:
13. tree ----c:>tree ----show d:''s directory
14. format ----c:>format ----format d: for dos
15. md ----c:>md directory-name ----make a new directory
16. rd ----c:>rd directory
eg: c:>rd yln ----delete directory named yln
(the directory that will be delete MUST be empty.)
17. deltree ----c:>deltree
eg: c:>deltree yln/y ----delete directory named yln ,and No ask for your affirm   
18. time ----c:>time ----ask the system time,and change the time
19. prompt ----c:>prompt $p$g ----set the prompt in this format: d:\current-path>

Also something I wrote before, now dug out to make up the numbers. Hehe...

================================= kickout
大功告成,打个Kiss!
Floor 2 Posted 2003-06-21 00:00 ·  中国 江苏 南京 秦淮区 电信
初级用户
Credits 178
Posts 16
Joined 2003-06-20 00:00
23-year member
UID 5609
Gender Male
Status Offline
Why is there no Chinese version?
Floor 3 Posted 2003-06-21 00:00 ·  中国 北京 科技网
银牌会员
★★★
颓废青年
Credits 2,265
Posts 721
Joined 2003-05-12 00:00
23-year member
UID 2032
Gender Male
Status Offline
1. d: ----change drive Change drive
2. dir ----list file List files and directories
3. cd ----come to a directory Enter a directory
4. copy ----copy a file or many files Copy files
5. type ----show file conment Display file content on screen
6. ren ----rename a file Rename a file
7. del ----delete a file Delete a file
8. cls ----clear the screen Clear the screen
9. xcopy ----copy a group of files in a directory Enhanced version of copy, can copy directories and files
10.attrib ----show or change file's charckter Show and change file attributes
11.edit ----a editor for write a file Open a text editor
12.chkdsk ----check a disk Check disk
13.tree ----list directory tree List all directories
14.format ----format a disk for dos Format disk for DOS
15.md ----make a directory Create a directory
16.rd ----delete a directory Delete empty directory
17.deltree ----delete a directory with all it's sub directory Delete all contents in a directory and its subdirectories
18.time ----show system time Display or modify time
19.prompt ----change the prompt Change prompt
Floor 4 Posted 2003-06-22 00:00 ·  中国 天津 联通
初级用户
Credits 129
Posts 6
Joined 2003-06-20 00:00
23-year member
UID 5604
Gender Male
Status Offline
doskey records the commands used after each startup and can also define macro instructions.
mem view memory usage
MSD view computer configuration
fdisk partition the hard disk
sys transfer system files
defrag defragment the hard disk
interlnk, intersvr DOS dual-machine interconnection
more pipeline

These are also the commands I commonly use.
Floor 5 Posted 2003-06-22 00:00 ·  中国 黑龙江 鹤岗 联通
初级用户
Credits 105
Posts 1
Joined 2003-06-22 00:00
23-year member
UID 5718
Gender Male
Status Offline
I am also a DOS enthusiast, but I know really few DOS commands. I hope you can help me and also hope you can teach me.
Floor 6 Posted 2003-06-23 00:00 ·  中国 江苏 南京 电信
初级用户
Credits 178
Posts 16
Joined 2003-06-20 00:00
23-year member
UID 5609
Gender Male
Status Offline
Really learned a lot, happy
Floor 7 Posted 2003-06-23 00:00 ·  中国 浙江 金华 电信
初级用户
Credits 117
Posts 3
Joined 2003-06-16 00:00
23-year member
UID 5283
Gender Male
Status Offline
Where are these DOS commands?
Floor 8 Posted 2003-07-27 00:00 ·  中国 福建 泉州 晋江市 电信
初级用户
Credits 107
Posts 1
Joined 2003-07-27 00:00
22-year member
UID 7616
Gender Male
Status Offline
Thank you for helping me out, it's really nice.
Floor 9 Posted 2003-08-04 00:00 ·  中国 山东 德州 联通(蓝汛云计算德州节点)
初级用户
Credits 105
Posts 1
Joined 2003-08-04 00:00
22-year member
UID 8012
Gender Male
Status Offline
Finally found the Chinese commentary, thanks for providing!
Floor 10 Posted 2003-08-04 00:00 ·  中国 山东 聊城 联通
初级用户
Credits 105
Posts 1
Joined 2003-08-04 00:00
22-year member
UID 8044
Gender Male
Status Offline
I've just started learning DOS, and there are such places, so happy!
Floor 11 Posted 2003-10-07 00:00 ·  中国 山东 威海 联通
初级用户
Credits 140
Posts 10
Joined 2003-10-07 00:00
22-year member
UID 10810
Gender Female
Status Offline
How can those who don't understand English read it??? Is there a Chinese version?
Floor 12 Posted 2003-10-10 00:00 ·  中国 香港 环球全域电讯
初级用户
Credits 143
Posts 10
Joined 2003-10-09 00:00
22-year member
UID 10915
Gender Male
Status Offline
good
defrag can not use because it will br hurt the HD

(The text has some typos, "br" should be "be". The corrected translation is)
good
defrag cannot be used because it will be hurtful to the HD
Floor 13 Posted 2003-11-15 00:00 ·  中国 上海 同济大学本部西南七楼
初级用户
Credits 173
Posts 22
Joined 2003-11-15 00:00
22-year member
UID 12849
Gender Male
Status Offline
Dear all experts,

I want to save my keyboard input as a file. Type "copy con c:\test.txt" and press Enter, then I can input content. Then there will be an additional test.txt file in the root directory of drive C, and the content is exactly what I input. But I don't know how to end the input. Please give me your advice!
Floor 14 Posted 2003-11-17 00:00 ·  中国 江西 宜春 万载县 电信
初级用户
Credits 153
Posts 11
Joined 2003-10-21 00:00
22-year member
UID 11637
Gender Male
Status Offline
I stared at it for ages and still can't understand it.~
Floor 15 Posted 2003-11-18 00:00 ·  中国 广西 柳州 电信
初级用户
Credits 149
Posts 10
Joined 2003-11-18 00:00
22-year member
UID 12996
Gender Male
Status Offline
LZ

Are all these English written by you?
Forum Jump: