Press the key combination: Win + R, enter cmd into DOS.
1. CLS: Clear Screen command.
2, ver: Check the system version number command, winver pop up a window to display a more detailed system version number.
3, dir no parameters: View the current directory of files and folders
/s: View the files and folders for the current directory and all of its subdirectories.
/A: View all files that include hidden files.
4. CD Directory Name: Enter a specific directory. such as: CD D:/media (under D disk, Direct CD Media).
If you want to jump to a different partition direct D: Enter.
Cd\: Go back to the root directory.
Cd.. : Back to the top level directory.
5, MD Directory name: Create a new sub-folder (Dos habit plus directory, win under the habit called folder).
6. Time: Displays or sets the system times. Format: TIME[HH:MM:SS]
7. RD Directory Name: Deletes a specific folder.
8, copy path \ filename 1 path \ filename 2: Copy 1 to 2.
9, move path \ filename 1 path \ filename 2: Move 1 (cut) to 2.
10, del file name: Delete a file.
Del * *: Deletes all files under the current folder.
Note: Del can only delete files and cannot delete folders.
11. Type text FileName: Displays the contents of the text file. Example: Type 123.txt
12, ren old filename New file name: the file name.
13. Title FileName: Change the name of the cmd window title.
14. Net start: See which services are turned on.
15. NET User: See which users are there.
16, net User St M123/add: Create an account named St, the password is m123
17. NET user username (account name): View the properties of the account.
18, net localgroup Administrators user name/add: Add "User" to the administrator so that it has administrator privileges.
19, net Startup service name: Open service.
NET stop service Name: Stop the service.
NET Pause Service Name: pauses a service.
20. NET view to see which shares are turned on in the local area network.
NET share view native-enabled shares.
NET view \\ip to see those shares open within the other LAN.
21, net config: Displays the system network configuration.
22, net user guest 123456:guest login password changed to 123456.
23. Netstat–a: Check which ports are open.
Netstat–n: Check the network connectivity of the port.
Netstat–v: View the work in progress.
NETSAT–P protocol Name: View the usage of a protocol. (Protocol name: TCP, UDP, etc.)
24, tracert Host: View yourself to the target host through those paths. such as: Tracert www.baidu.com
25. Set: Displays all current configurations.
26, Ipconfig/all: Check the local IP and other information.
27, net/? ping/? Displays help information.
Common DOS commands (tested under Win7)