Simple Dos command

How to open cmd
1. Start + System + Command Prompt
2. Win key + R Enter cmd to open the console
3. Under any folder, hold down shift + right-click the mouse to open the shell window here
4. File Explorer , Add the cmd path in front of the file address bar, and enter the
administrator mode to run

Commonly used Dos commands

1、盘符切换 D:
2、查看目录 dir
3、切换目录 cd
/d 参数实现跨盘符切换
4、清理屏幕 cls(clear screen)
5、退出终端  exit
#打开应用
6、打开计算器 calc
7、打开记事本 notepad
#ping
8、ping www.baidu.com 获取网站的ip地址,查看网络情况
9、创建文件夹 md 文件夹名
10、创建文件 cd>输入文件名
11、删除文件 del 文件名
12、删除目录 rd 文件夹名(删除目录前需先删除文件)

Guess you like

Origin blog.csdn.net/pha1012/article/details/114104319