1、一些命令
#清屏
cls
#进入其他盘符路径,比如:
cd ..
cd zengjunyu
d:
cd \
#列出当前目录
dir
#查找文本
findstr
#命令行读文件
CHCP 65001
more +0 a.txt
#文件md5值计算
md5sum.exe 文件
#切换用户
runas /user:administrator cmd
#删除服务
sc delete 服务名称
#查看本机 ip 配置
ipconfig -all
#ping 端口
telnet 120.202.26.125 20000
#查看 port 占用情况
netstat -ano
#解决端口占用
#根据端口查出pid
netstat -ano|findstr 占用端口
#根据pid找出对应进程名
tasklist|findstr "8024"
#根据pid结束进程
taskkill /pid 上面行显示的进程pid /f
#根据进程名结束进程
taskkill /f /t /im 进程名(.e.g. tor.exe)
#端口转发
netsh
interface portproxy add v4tov4 listenport=xxx listenaddress=xxx connectport=xxx connectaddress=xxx
interface portproxy dump
interface portproxy reset
interface portproxy delete v4tov4 listenport=xxx listenaddress=xxx connectport=xxx connectaddress=xxx
#打开计算器
calc
#打开画图
mspaint
#打开注册表
regedit
#打开设备管理器
devmgmt.msc