Windows equivalents of ps and kill commands

If you’ve ever used Unix, you’ll no doubt be well-aquainted with the commands ps and kill. On Windows, the graphical Task Manager performs these roles pretty well, but if you ever find yourself needing to resort to the command line to kill a process (e.g. for some reason on the Vista machine I am writing this on Task Manager just sits in the system tray flashing instead of opening), the Windows equivalents of ps and kill are tasklist and taskkill:

tasklist /v  - equivalent to ps aux
taskkill /f /im ncover*  - equivalent to kill -9 ncover*
June 18, 2009

3 Comments

Hrish on June 22, 2009 at 4:04 pm.

Great stuff – I did not know about these. But the output of tasklist /v is almost unreadable in the default font setting of a windows console. Decreasing the font size does help, though.

Todd on June 26, 2009 at 2:00 am.

You should also be aware of the SysInternals Suite which includes programs like pslist, psexec, psservices etc for managing processes and services on the local computer or on any computer on the network.

http://technet.microsoft.com/en-us/sysinternals/default.aspx

Srinivasula Reddy Maram on November 4, 2010 at 9:15 am.

Its good to know that ps equivalent command tasklist and kill equivalent command taskkill for those who involve in scripting….

Thanks a lot for information…
Srinivas

Leave Your Comment

Your email will not be published or shared. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>