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-03 08:41
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Help: an intuitive tutorial on common DOS commands? View 2,137 Replies 4
Original Poster Posted 2010-05-21 18:19 ·  中国 浙江 台州 椒江区 电信
初级用户
Credits 53
Posts 23
Joined 2009-01-08 11:48
17-year member
UID 136109
Gender Male
Status Offline
Like in the command example below

1. CD command
3)cd folder name Enter the XXX directory


Conditions: single-system XP installed on drive C of a single hard disk; the hard disk has c, D, E, F, G partitions, all using the FAT32 file system; in the root directory of drive E there is a folder 1, and in folder 1 there is a file 2
Enter DOS
===========
A:\>_
A:\>E: ------>(enter drive letterE:)
Press Enter ------->(press the Enter key on the keyboard)
E:\_
E:\cd 1 ------>(there is a space between cd and 1)
Press Enter
E:\1>_
E:\1\ 2
Press Enter

==========

+++++++++++++++++++++++++++++++++++++++++++++++++

Please, experts, use the above method to teach us newbies how to use the following common DOS commands
Common DOS commands

1. CD command

1)cd.. Go back to the next higher directory
2)cd\ Return to the root directory
3)cd folder name Enter the XXX directory

2.MD command

1)md folder name Create an XXX folder

3.RD command

1)rd folder name Delete an XXX folder (the prerequisite is that the folder does not contain anything; if it does, you need to add the /s parameter)

4.COPY command

1)copy file under path target path Copy the file under the path to the target path

5.DEL command

1)del file under target path Delete the file under the target path

6.DIR command

1)dir folder name or drive letter View the files under a certain path

2)dir/W:wide-screen display, shows 5 filenames in one row, and will not show information such as modification time and file size

dir/S:show all files in the current directory and its subdirectories

dir/a :view all files including hidden files dir c:\windows /a

dir/p :view by pages, this one is very practical, everyone should definitely try it themselves

7.FORMAT command

1)format drive letter Format the hard disk

8.REN command

1)ren filename1 filename2 Rename filename1 to filename2

9.TYPE command

1)type filename View file contents

10.CLS command

1)cls Clear the screen (not very useful, it just looks a bit cleaner)

Common network DOS commands

11.FPORT command View system ports and the programs running on those ports

12.netstat -an View all connections to the local IP

13.ipconfig /all View detailed information for all local IPs

14.telnet IP port Connect to a certain port on the other machine

15.net user View local users
net user username password /add Create a user
net user username /del Delete a user

16.net localgroup administrators username /add Add the user to administrators
net localgroup administrators username /del Remove the user from the administrators group



17.mem Check how much memory your computer has, and the memory usage

18.time Display and set the DOS system time Enter the new time: means setting the time; just press Enter to skip it

19.date Display and set the DOS system date Used the same way as the time command

20.ver Display the version number of the DOS system currently running



+++++++++++++++++++++++++++++++++++++++++++++++++

[ Last edited by 5q8 on 2010-5-21 at 19:07 ]
Floor 2 Posted 2010-05-21 23:32 ·  新加坡 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Batch file series thread index
http://bbs.bathome.net/thread-2576-1-1.html
Floor 3 Posted 2010-05-22 03:25 ·  中国 浙江 台州 椒江区 电信
初级用户
Credits 53
Posts 23
Joined 2009-01-08 11:48
17-year member
UID 136109
Gender Male
Status Offline
Starting from zero, list all usages of the same command separately, with the full operation process and explanation; that is easier for newbies to understand
For example, the first usage of the CD command
cd folder name Enter the XXX directory

First list the full operation process:
===========
A:\>_
A:\>E: ------>(enter drive letter E:)
Press Enter ------->(press the Enter key)
E:\_
E:\cd 1 ------>(there is a space between cd and 1)
Press Enter
E:\1>_
E:\1\ 2
Press Enter
==========
Then for the second usage of the CD command, such as
cd.. Go back to the next higher directory
likewise list the full operation process (and then explain it):
=============




=============

And so on....
=====================================
If the different usages of the same command are all mixed together, it is very hard for newbies to understand, and even harder to apply
The full operation process means the actual practical process, intuitive and ready to learn and use right away

[ Last edited by 5q8 on 2010-5-22 at 03:37 ]
Floor 4 Posted 2010-05-24 10:00 ·  中国 上海 联通
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
A complete guide to using the various commands in MS-DOS 7.x
http://www.cn-dos.net/forum/viewthread.php?tid=1693
Floor 5 Posted 2010-05-27 02:32 ·  中国 湖南 常德 电信
银牌会员
★★★
Credits 1,384
Posts 709
Joined 2005-10-29 22:22
20-year member
UID 44271
Status Offline
Didn't you already write out the method yourself?
Forum Jump: