Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Kill (command)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Microsoft Windows and ReactOS=== [[File:Taskkill.jpg|thumb|300px|The {{code|taskkill}} command on [[Microsoft Windows]]]] In Microsoft's command-line interpreter [[Windows PowerShell]], <code>kill</code> is a predefined [[alias (command)|command alias]] for the <code>Stop-Process</code> [[cmdlet]]. [[Windows XP|Microsoft Windows XP]], [[Windows Vista|Vista]] and [[Windows 7|7]] include the command <code>taskkill</code><ref>{{cite web | title = Taskkill | url = https://technet.microsoft.com/en-us/library/bb491009.aspx | website = Microsoft TechNet | access-date = 2015-02-24 }}</ref> to terminate processes. The usual syntax for this command is <code>taskkill /im "IMAGENAME"</code>. An "unsupported" version of <code>kill</code> was included in several releases of the [[Microsoft Windows]] [[Resource Kit]]s available for Windows 98.<ref>{{cite web | title = Resource Kit Utilities - Windows '98 Resource Kit | url = http://www.activexperts.com/admin/reskit/reskit98/ | website = ActiveXperts Software | access-date = 2015-02-24 | archive-date = 2019-05-25 | archive-url = https://web.archive.org/web/20190525230705/https://www.activexperts.com/admin/reskit/reskit98/ | url-status = dead }}</ref> [[GNU]] versions of <code>kill</code> have been ported via [[Cygwin]] and run inside of the Unix environment subsystem that [[Microsoft Windows Services for UNIX]] provides (Microsoft acquired Windows Services for Unix wholesale via their purchase of Softway Systems and their [[Interix]] product on September 17, 1999).<ref>{{cite web | title = GNU utilities for Win32 | url = http://unxutils.sourceforge.net/ | access-date = 2015-02-24 | archive-url = https://web.archive.org/web/20060209022842/http://unxutils.sourceforge.net/ | archive-date = 2006-02-09 | url-status = dead }}</ref> [[File:ReactOS-0.4.13 taskkill command 667x434.png|thumb|300px|The {{code|taskkill}} command on [[ReactOS]]]] The [[ReactOS]] implementation is based on the Windows variant. It was developed by Andrew Riedi, Andrew Nguyen, and He Yang. It is licensed under the [[LGPLv2.1]] or later.<ref name="reactos">[https://github.com/reactos/reactos/blob/master/base/applications/cmdutils/taskkill/taskkill.c reactos/taskkill.c at master Β· reactos/reactos Β· GitHub]</ref> ====Examples==== Find all processes beginning with the letter "p" that were developed by Microsoft and use more than 10 MB of memory and kill them: <syntaxhighlight lang="ps1con"> PS C:\> ps p* | where { $_.Company -like "Microsoft*" -and $_.WorkingSet -gt 10MB } | kill -confirm Confirm Are you sure you want to perform this action? Performing operation "Stop-Process" on Target "powershell (6832)". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A PS C:\> </syntaxhighlight> Here is a simpler example, which asks the process [[Windows Explorer|Explorer.exe]] to terminate: <syntaxhighlight lang="ps1con">PS C:\> taskkill /im explorer.exe</syntaxhighlight> This example forces the process to terminate: <syntaxhighlight lang="ps1con">PS C:\> taskkill /f /im explorer.exe</syntaxhighlight> Processes can also be killed by their [[Process identifier|PID number]]: <syntaxhighlight lang="ps1con">PS C:\> taskkill /pid 3476</syntaxhighlight>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)