版权声明:作者-傲娇天子 博文主页地址:https://blog.csdn.net/qq_41116956 欢迎转载,转载请在文章页面明显位置给出原文链接,谢谢 https://blog.csdn.net/qq_41116956/article/details/82862900
查询命令:
tasklist
C:\Users\Administrator>tasklist
映像名称 PID 会话名 会话# 内存使用
========================= ======== ================ =========== ============
System Idle Process 0 Services 0 24 K
System 4 Services 0 64 K
smss.exe 372 Services 0 488 K
csrss.exe 540 Services 0 3,596 K
csrss.exe 584 Console 1 98,308 K
wininit.exe 592 Services 0 1,752 K
winlogon.exe 648 Console 1 4,552 K
services.exe 688 Services 0 9,456 K
lsass.exe 700 Services 0 13,468 K
lsm.exe 708 Services 0 4,796 K
svchost.exe 804 Services 0 6,876 K
svchost.exe 420 Services 0 11,028 K
svchost.exe 1040 Services 0 19,740 K
svchost.exe 1076 Services 0 242,320 K
svchost.exe 1100 Services 0 58,632 K
kill对应进程:
按名称:
taskkill /im xxx.exe
按pid:
taskill /pid pid
kill掉xxx进程的相关进程(子进程)
taskkill -f -t -im xxx.exe