commands detail - k

kill

The equivalent of bash’s kill is:

  1. stop-process

A typical usage in Powershell might be:

  1. # find the process
  2. get-process | select id, ProcessName | where {$_.processname -like 'iex*'}
  3. # kill the process
  4. stop-process 5240

There is a built in alias kill which translates to stop-process

  1. get-alias k*
  2. CommandType Name
  3. ----------- ----
  4. Alias kill -> Stop-Process