打开命令行

1.在菜单栏中搜索命令行

2.在文件管理器的Path栏输入cmd,则在当前目录打开命令行

3.Windows+R,输入cmd,回车

ping(网络诊断工具)

ping是Windows、Unix和Linux系统下的一个命令

ping也属于一个通信协议,是TCP/IP协议的一部分

利用“ping”命令可以检查网络是否连通,可以很好地帮助我们分析和判定网络故障,用来作为可用性的检查

应用格式:ping空格IP地址 或者 ping空格域名

举例

C:\Users\xxx>ping baidu.com

Pinging baidu.com [123.125.115.110] with 32 bytes of data:
Request timed out.
Reply from 123.125.115.110: bytes=32 time=52ms TTL=49
Reply from 123.125.115.110: bytes=32 time=51ms TTL=49
Reply from 123.125.115.110: bytes=32 time=52ms TTL=49 Ping statistics for 123.125.115.110:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 51ms, Maximum = 52ms, Average = 51ms C:\Users\xxx>ping 123.125.115.110 Pinging 123.125.115.110 with 32 bytes of data:
Reply from 123.125.115.110: bytes=32 time=51ms TTL=49
Reply from 123.125.115.110: bytes=32 time=51ms TTL=49
Request timed out.
Reply from 123.125.115.110: bytes=32 time=51ms TTL=49 Ping statistics for 123.125.115.110:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 51ms, Maximum = 51ms, Average = 51ms

原理:利用网络上机器IP地址的唯一性,给目标IP地址发送一个数据包,再要求对方返回一个同样大小的数据包来确定两台网络机器是否连接相通,时延是多少

ipconfig(查看本机ip)

举例

C:\Users\Administrator>ipconfig

Windows IP Configuration

Ethernet adapter 以太网:

   Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : Ethernet adapter vEthernet (默认交换机): Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : xxxx::xxxx:xxxx:xxxx:xxxx
IPv4 Address. . . . . . . . . . . : x.x.x.x
Subnet Mask . . . . . . . . . . . : x.x.x.x
Default Gateway . . . . . . . . . : Wireless LAN adapter 本地连接* 1: Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : Wireless LAN adapter 本地连接* 11: Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : Wireless LAN adapter WLAN: Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : xxxx::xxxx:xxxx:xxxx:xxxx
IPv4 Address. . . . . . . . . . . : x.x.x.x
Subnet Mask . . . . . . . . . . . : x.x.x.x
Default Gateway . . . . . . . . . : x.x.x.x Ethernet adapter 蓝牙网络连接: Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

目录浏览

进入某个盘

D:
目标盘:

在当前盘中前进

cd 目标目录

回退到上一级

cd..

举例

C:\Users\Administrator>D:

D:\>cd WeChat

D:\WeChat>cd
D:\WeChat D:\WeChat>cd.. D:\>

查看目录文件

dir

如果是需要查看隐藏文件的或者更多操作的话,可以使用dir /?来查看其它用法

D:\WeChat>dir /?
Displays a list of files and subdirectories in a directory. DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
[/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4] [drive:][path][filename]
Specifies drive, directory, and/or files to list. /A Displays files with specified attributes.
attributes D Directories R Read-only files
H Hidden files A Files ready for archiving
S System files I Not content indexed files
L Reparse Points - Prefix meaning not
/B Uses bare format (no heading information or summary).
/C Display the thousand separator in file sizes. This is the
default. Use /-C to disable display of separator.
/D Same as wide but files are list sorted by column.
/L Uses lowercase.
/N New long list format where filenames are on the far right.
/O List by files in sorted order.
sortorder N By name (alphabetic) S By size (smallest first)
E By extension (alphabetic) D By date/time (oldest first)
G Group directories first - Prefix to reverse order
/P Pauses after each screenful of information.
/Q Display the owner of the file.
/R Display alternate data streams of the file.
/S Displays files in specified directory and all subdirectories.
/T Controls which time field displayed or used for sorting
Press any key to continue . . .

清除屏幕

cls

查看cmd下的命令

help

找到命令之后,使用 命令+ /?来查看该命令下的其他属性

cd /?

参考资料

https://blog.csdn.net/LJFPHP/article/details/78818696

windows常用cmd指令的更多相关文章

  1. Windows常用cmd命令总结

    cmd是command的缩写,即命令提示符. 运行操作: 使用"Win+R"快捷键召唤出运行窗口,再在运行中输入cmd即可. 1.ping 用法: 常用举例: ping www.g ...

  2. windows 常用cmd命令

    为了减少使用鼠标的频次,熟记一些常用应用的快捷键与系统本身常用的命令是必须的,以下记录一些常用的windows系统命令. 查看网络端口占用情况 :netstat -ano | findstr 8080 ...

  3. 常用CMD指令

    快捷方式: dcomcnfg.exe   打开windows的组件服务. regedit   打开windows的注册表的界面,进行管理. services.msc  打开service面板 calc ...

  4. Windows之cmd指令

    gpedit.msc-----本地计算机策略sndrec32-------录音机 Nslookup-------IP地址侦测器 explorer-------打开资源管理器 logoff------- ...

  5. Windows 常用Cmd命令行 (持续更新...)

    查看IP ipconfig 查看WIFI密码 netsh wlan show profiles wifi_name key = clear 系统探针 systeminfo CMD重定向 输出符号> ...

  6. Windows 常用 CMD 命令行介绍

    看下面的链接: http://www.jianshu.com/p/76ff5d16f113

  7. Windows常用CMD命令

    远程桌面:mstsc 记事本:notepad        写字板:write 计算器:calc IIS重启:iisreset 60秒倒计时关机命令:tsshutdn     15秒关机:rononc ...

  8. C/C++:Windows cmd 指令

    一.快捷键1. Windows键 自从104键盘首次加入Windows键后,微软便一直计划为这个键添加更多功能,当然Win8也不例外. * Win+C:调出应用Charm菜单(Metro.传统桌面) ...

  9. [转帖]Windows批处理(cmd/bat)常用命令小结

    Windows批处理(cmd/bat)常用命令小结 非常值得学习的文档 先放这里 有时间做实验, 转载自:“趣IT”微信公共号 前言 批处理文件(batch file)包含一系列 DOS命令,通常用于 ...

随机推荐

  1. 应用 Valgrind 发现 Linux 程序的内存问题及交叉编译for arm

    Valgrind 概述 体系结构 Valgrind是一套Linux下,开放源代码(GPL V2)的仿真调试工具的集合.Valgrind由内核(core)以及基于内核的其他调试工具组成.内核类似于一个框 ...

  2. USB 3.0规范中译本 第5章 机械结构

    本文为CoryXie原创译文,转载及有任何问题请联系cory.xie#gmail.com. 本章定义USB 3.0连接器和线缆组件的form, fit 和 function.包括以下方面: • 连接器 ...

  3. USB 3.0规范中译本 第1章 引言

    本文为CoryXie原创译文,转载及有任何问题请联系cory.xie#gmail.com. 1.1 动机(Motivation) Universal Serial Bus (USB) 的原始动机来自于 ...

  4. CF 559B(Equivalent Strings-构造法)

    B. Equivalent Strings time limit per test 2 seconds memory limit per test 256 megabytes input standa ...

  5. Android 截取手机屏幕两种实现方案解析

    近期在开发的过程中,遇到了一个须要截取屏幕保存为图片的需求,详细为截取webview的视图保存图片. 方法1:首先想到的思路是利用SDK提供的View.getDrawingCache()方法: pub ...

  6. SpringSecurity3.2.5自己定义角色及权限的教程

    近期阴差阳错的搞上了SpringSecurity3.由于是自己做的小系统.中间遇到了非常多坑,基本每一个坑都踩过了,网上也查了不少资料,发现有不少错误的.更是让我绕了一圈又一圈,如今把一些主要的东西总 ...

  7. Mysql存储过程中使用cursor

    一.表 学生表 CREATE TABLE `t_student` (    `stuNum` int(11) NOT NULL auto_increment,    `stuName` varchar ...

  8. OSGI简介—HelloWorld

    版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/wanghuan203/article/details/13631713 本次介绍的 HelloWor ...

  9. NOI模拟 颜色 - 带修莫队/树套树

    题意: 一个颜色序列,\(a_1, a_2, ...a_i\)表示第i个的颜色,给出每种颜色的美丽度\(w_i\),定义一段颜色的美丽值为该段颜色的美丽值之和(重复的只计算一次),每次都会修改某个位置 ...

  10. 小强的HTML5移动开发之路(24)—— PhoneGap Android开发环境搭建

    有关JDK及Android开发环境的搭建请看我前面的博文:http://blog.csdn.net/dawanganban/article/details/9748497 一.下载PhoneGap 下 ...