1. 创建目录
mkdir dirName
2. DOS 命令窗口打开后,默认路径
C:UsersAdministrator
3. 在DOS命令窗口中怎么复制内容?
win7:任意位置点击右键-->标记-->选中要复制的内容-->点击右键-->此时就到剪贴板里面了。
win10:左键直接选中,然后右键单击一下就到剪贴板里面了。
4. 如何切换盘符
直接输入盘符即可。譬如切换到 C 盘,输入 C: ,然后回车
5. 切换目录
cd dir(cd:change directory)
cd .. 回到上级路径。
cd 直接回到根路径。
. 一个点,代表当前路径。(cd命令用不着。以后配置环境变量的时候一个点有用处。)
6. 清屏
cls
7. 查看当前目录内容
dir
8. 退出DOS命令窗口
exit
9. 删除文件
del
10. 查看本机IP地址
ipconfig
ipconfig /all:查看更详细的网络信息。其中包括网卡的 MAC 地址。
11. 查看两台计算机是否能正常通信
ping IP地址
ping 域名
我们还可以加上 -t 参数,连续 ping 指定地址。这样可以查看网络是否稳定。
12. 强行终止命令
ctrl + c