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


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.

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…

arbit on June 12, 2012 at 5:12 am.

thanks :) very helpful

dufftime on October 19, 2012 at 7:19 pm.

Thank you.. your page is the first match when Googling “windows ps equivalent”.

Note you can use Windows “find” to behave like “grep”, so this common command:
ps -ef | grep process

Can be run in Windows as:
tasklist /v | find “process”

AndyK on February 5, 2013 at 5:44 pm.

Dufftime, thank you for your tip! It’s GREAT!

Hrish: To better see the result of your command export to a file.
You can run as:
tasklist /v > tasklist_result.txt

The file generated will be in your C:\Users\MyUser

Leave a Reply