Common Windows DOS commands (continuous update and improvement)

Windows system is not case sensitive, "-" and "/" in DOS are basically equivalent

↑↓ #View the commands that have been entered
←→
#Move the cursor 【Shift】+【PageUp】 #Page up
【Shift】+【PageDown】 #Page down
【Insert】 #Switch input mode (insert/add)
cls #清
屏calc #Call out the system calculator
ipconfig# View the network card information the same as linux
ping www.baidu.com# The network cannot be connected under ping (ip is also possible, such as: ping 192.168.1.11)
mysql -h XXX -u XXX- pXXX #Remote connection MySQL
shutdown -s -t XXX #Timed shutdown
shutdown -a #Cancel timed shutdown
shutdown -r #Restart
cd… #Switch to parent directory
cd d: #Switch to d drive
cd path/directory#Switch to Specify the path
where XXX #Query location
help #Total help summary
XXX /?
#Specify the help description of the command dir #Display the file
dir directory in the current directory#Display the file in the specified directory
dir /s directory#Display the specified directory and all subdirectories File
dir /q directory#Display the files and owners in the specified directory
copy path 1\file name 1 path 2\file name 2 #copy and rename (for the level here), the same as linux cp (for the level /), support absolute path+ relative path
move path 1\file name 1 path 2\file name 2 #copy and rename (for the level here), the same as linux mv (for the level), support absolute path + relative path to
be continued

Guess you like

Origin blog.csdn.net/Tiandao60/article/details/108562953
Recommended