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 ]
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 ]

