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*

6 thoughts on “Windows equivalents of ps and kill commands

  1. 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. 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

  3. 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”

  4. 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