常用的Dos命令
常用的Dos命令
- 
切换盘符:盘符+英文:
G:\Users\93216>d:
D:\> - 
查看当前目录下所有文件:dir
 
- 
当前盘符下切换文件路径: cd+文件路径
C:\>cd Windows/installer
C:\Windows\Installer> 
- 
返回上一级:cd..
C:\Windows\Installer>cd ..
C:\Windows>cd ..
C:\> 
- 
跨盘符切换文件路径:cd \d 文件路径
- 
\d的参数的斜杠必须是正斜杠
 
- 
文件路径中的斜杠,正反都可以
 
C:\>cd /d d:
D:\>cd /d F:
F:\>cd /d C:/Windows\Installer
C:\Windows\Installer> - 
 
- 
创建文件夹:md 文件夹名
 - 
创建文件:cd >文件名,eg:cd >a.txt
 - 
删除文件/文件夹:del 文件名/文件夹名 或者 rd 文件名/文件夹名
 - 
清屏:cls,含义(clear screen)
 
- 
退出终端:exit
 
- 
查看电脑网络信息:ipconfig
 
- 
打开电脑的应用程序:应用程序名称
# 计算器
PS G:\Users\93216> calc
# 画图
PS G:\Users\93216> mspaint
# 记事本
PS G:\Users\93216> notepad 
- 
测试网络是否正常:ping
PS G:\Users\93216> ping www.baidu.com
正在 Ping www.a.shifen.com [110.242.68.4] 具有 32 字节的数据:
来自 110.242.68.4 的回复: 字节=32 时间=12ms TTL=53
来自 110.242.68.4 的回复: 字节=32 时间=11ms TTL=53 
                    
                
                
            
        
浙公网安备 33010602011771号