A Unix Person's Guide to PowerShell
  • ReadMe
  • About this Book
  • Introduction to PowerShell for Unix People
  • Commands Summary
  • Command Detail - A
  • Command Detail - B
  • Command Detail - C
  • Command Detail - D
  • Command Detail - E
  • Command Detail - F
  • Command Detail - G
  • Command Detail - H
  • Command Detail - I
  • Command Detail - J
  • Command Detail - K
  • Command Detail - L
  • Command Detail - M
  • Command Detail - N
  • Command Detail - O
  • Command Detail - P
  • Command Detail - Q
  • Command Detail - R
  • Command Detail - S
  • Command Detail - T
  • Command Detail - U
  • Command Detail - V
  • Command Detail - W
  • Command Detail - X
  • Command Detail - Y
  • Command Detail - Z
  • Command Detail - Non-alphabetical
  • To-do
Powered by GitBook
On this page

Command Detail - K

kill

The equivalent of bash's kill is:

stop-process

A typical usage in Powershell might be:

# find the process
get-process | select id, ProcessName | where {$_.processname -like 'iex*'}

# kill the process
stop-process 5240

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

get-alias k*

CommandType     Name
-----------     ----
Alias           kill -> Stop-Process
PreviousCommand Detail - JNextCommand Detail - L

Last updated 7 years ago