Commonly used DOS commands
1. The way to open cmd
1. Find the beginning of W in the start menu bar and click the command prompt in the Windows system
Right click and more can run as administrator
2. Win key + R key to enter cmd
3. Hold down the shift key + right mouse button under the folder to open the Powershell window
4. In the address bar of the resource manager (my computer), enter [cmd plus space] at the front and then press Enter
Commonly used DOS commands
Switch drive letter (drive letter + English colon)
D:
View all files (including folders) in the current directory
dir
Switch directory (slash / for parameters, backslash \ for path) cd command (change directory)
跨盘符切换目录(/d是参数,D是盘符)
cd /d D:
跨盘符进入文件夹(进入D盘下的gif文件夹)
cd /d D:\gif
回退到上级目录
cd ..
进入当前目录里的其中一个目录(可以先通过dir命令查看有哪些目录)
cd 文件夹名称(跨越多级可以使用路径)
new folder
md 文件夹名称
Delete the folder (completely delete the recycle bin)
rd 文件夹名称
New file (Take a new test.txt file as an example)
建立内容为空的文件
cd.>test.txt
建立内容为当前文件夹路径的文件
cd>test.txt
Delete files (take a test.txt file as an example) (completely delete the recycle bin)
del test.txt
Clean screen cls (clear screen)
cls
View computer ip
ipconfig
ping get URL ip (take Baidu as an example)
ping www.baidu.com
Open frequently used apps
打开计算器
clac
打开画图
mspaint
打开记事本
notepad
Exit terminal
exit