windows特殊命令(未完待续版)
特殊命令(未完待续版)
以下罗列了一些我不常见的命令,不知道以后用处大不大,先记录下来。
ping #测试网络连通性
ping 127.0.0.1
nslookup #手工解析域名
nslookup www.baidu.com
ipconfig #查看ip
ipconfig /flushdns、displaydns #DNS
ipconfig /release、renew #DHCP
attrib #隐藏
attrib +h *.*
assoc #修文件改关联性
assoc .exe=txtfile
taskkill #终止进程
taskkill /f *.*或/pid
fsutil #管理文件系统
fsutil file createNew C:\xhz.txt 1000 #快速生成大文件
netstat #查看端口占用
netstat -an #以数字形式显示所有连接和侦听的端口
whoami #显示用户信息
net #关于网络服务
net user/localgroup/share/use #用户/组/共享/共享连接
net time #时间

浙公网安备 33010602011771号