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 18th, 2009 | 2 Comments
2 Responses to “Windows equivalents of ps and kill commands” Leave your Comment
  1. Hrish says:

    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.

  2. Todd says:

    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

Leave a reply

We love to hear your views.