按win+r,输入cmd进入终端命令窗口
常用DOS命令
help 帮助
date——显示或设置日期
time——显示或设置系统时间
format:格式化磁盘
chkdsk:检查磁盘错误并修复
cls 清除屏幕
shutdown -s -t 60 -c "你的电脑被黑了" -s关机 -t限时 -c提示 -r重启 -a取消
shutdown -a 取消关机
exit——关闭cmd运行程序
ctrl+c——中止命令执行
系统信息
systeminfo 查看系统信息
hostname 查看主机名
SET 查看环境变量
color 1 改变cmd颜色 (1 2 3 4 5 6 7 8 9 A B C D E F)
网络
ipconfig /all 显示完整网络信息
ipconfig /release 释放ip
ipconfig /renew 重新获得ip
ipconfig /flushdns 刷新DNS缓存
ipconfig /displaydns 显示DNS解析程序缓存的内容
route print 打印路由信息
arp -a 查看arp缓存
net view 查看局域网内其他计算机名称
netsh firewall show state 防火墙状态
netsh firewall show config 防火墙规则
ping xxx(ip地址)测试网络联通性
nslookup 查询域名解析信息
tracert:跟踪网络数据包的路径
用户
net config workstation 查看当前登录用户
whoami 查看我是哪个用户
net user 查看有哪些用户