备忘查询等命令

1. tasklist 查看所有进程

2. netstat -ano 查看所有端口网络状态:a-所有进程;n-数字显示;o-显示进程ID;

3. findstr 查询命令:netstat -ano|findstr "8080"查看 运行 8080 端口的 应用程序 ;tasklist|findstr "1176"(1176 为8080 端口的进程号);

4. taskkill 杀死进程命令:/f-强制;/pid -进程id

5. wmic process list 查看所有的进程:

无条件查询 wmic process list full 和 wmic process list brief;

6. wmic process get name,executablepath 使用get查询查看进程名,路径,pid;

使用过滤条件查询

(1)使用find或findstr wmic process get name,executablepath,processid|findstr pid;

(2)where条件查询 wmic process where name="qq.exe" get processid,executablepath,name

会显示所有的同名进程,注意where条件在前面,要获取的属性在后面。

7. 创建进程 wmic process call create "..\cmd.exe";

8. 结束进程 wmic process where name="cmd.exe" call terminate和wmic process where name="cmd.exe" delete

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值