scribbling

[윈도우8 커맨드] Get-Process -Name, taskkill

'김용환' 2018. 7. 27. 19:43


윈도우 10에 리눅스 ps 커맨드와 같은 Get-Process -Name 커맨드,

리눅스 kill 커맨드와 같은 taskkill 커맨드가 있다.



PS C:\Windows\system32> Get-Process -Name "*my*"


Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName

-------  ------    -----      -----     ------     --  -- -----------

    182      13     2544      10476     794.72   3016   0 my_cat

    182      13     2536      10464     777.58   2004   0 my_car

    182      13     2576      10488     792.05   1492   0 my_dog



PS C:\Windows\system32> taskkill /F /PID 3016

SUCCESS: The process with PID 3016 has been terminated.

PS C:\Windows\system32> taskkill /F /PID 2004

SUCCESS: The process with PID 2004 has been terminated.

PS C:\Windows\system32> taskkill /F /PID 1492

SUCCESS: The process with PID 1492 has been terminated.

PS C:\Windows\system32> Get-Process -Name "*my*"


(결과 없음)