常用的Dos命令

Dos命令

常用的Dos命令

  1. 切换盘符:盘符+英文:

    G:\Users\93216>d:

    D:\>
  2. 查看当前目录下所有文件:dir

  1. 当前盘符下切换文件路径: cd+文件路径

    C:\>cd Windows/installer

    C:\Windows\Installer>
  1. 返回上一级:cd..

    C:\Windows\Installer>cd ..

    C:\Windows>cd ..

    C:\>
  1. 跨盘符切换文件路径:cd \d 文件路径

    • \d的参数的斜杠必须是正斜杠

    • 文件路径中的斜杠,正反都可以

    C:\>cd /d d:

    D:\>cd /d F:

    F:\>cd /d C:/Windows\Installer

    C:\Windows\Installer>
  1. 创建文件夹:md 文件夹名

  2. 创建文件:cd >文件名,eg:cd >a.txt

  3. 删除文件/文件夹:del 文件名/文件夹名 或者 rd 文件名/文件夹名

  4. 清屏:cls,含义(clear screen)

  1. 退出终端:exit

  1. 查看电脑网络信息:ipconfig

  1. 打开电脑的应用程序:应用程序名称

    # 计算器
    PS G:\Users\93216> calc
    # 画图
    PS G:\Users\93216> mspaint
    # 记事本
    PS G:\Users\93216> notepad
  1. 测试网络是否正常: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
 
posted @ 2021-04-06 11:21  王滚滚啊  阅读(54)  评论(0)    收藏  举报