打开cmd的方式
-
开始+系统+命令提示符
-
以管理员身份运行
常用DOS命令
-
盘符切换 直接输入 盘符: 示例 D: 即可转到D盘,转到其他盘符,类推
-
查看当前目录下的所有文件 直接输入 dir 即可查看
-
切换目录 直接输入 cd 路径 cd的英文:change directory
-
跨盘切换 cd /d 盘符 示例 cd / d f: 即可转到F盘
-
跨盘切换到别的盘子目录 cd /d 路径 示例 cd /d F:IDE 即可转到F盘子目录IDE
-
同盘符切换,返回上一级目录 cd .. 示例 cd .. 即可返回上一级目录,即F盘
-
同盘符切换,进入下一级目录 cd 子目录名 示例 cd temp 即可进入F盘的子目录temp
-
-
清理屏幕 直接输入 cls 即可把cmd界面的内容清楚,看起来更干净 cls英文 clear screen
-
退出终端 直接输入 exit
-
查看计算机的IP配置 直接输入 ipconfig 即可查看本机的IP配置
-
打开应用 直接输入 calc 打开计算器
mspaint 打开画图
notepad 打开记事本
-
ping 命令 直接输入 ping 网址 即可获得该网址的一些信息 示例 ping www.baidu.com
-
创建一个文件夹 md 文件夹名 示例 md main 便会在当前目录下,创建一个mian文件夹
-
创建一个txt或其他文件 cd>文件名
示例 cd>a.txt 便会创建一个文件名为a的txt文件
cd>a.doc 便会在当前目录下创建一个文件名为a的doc文件
-
删除一份txt或其他文件 del 文件名
示例 del a.txt 便会在当前目录下删除一个文件为a的txt文件
del a.doc便会在当前目录下删除一个文件为a的doc文件
-
删除一个文件夹 rd 文件夹名 示例 rd main 便会在当前目录下,删除一个main文件夹
-