0
点赞
收藏
分享

微信扫一扫

备忘查询等命令

zidea 2022-01-18 阅读 44
运维

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

举报

相关推荐

0 条评论