14

What is the Linux equivalent of this command?

taskkill /F /IM myStupidProcess.exe /T
Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
Müller
  • 973
  • 6
  • 19
  • 38

1 Answers1

18

kill -9 pid_of_process

or

killall -KILL myStupidProcess

Joe
  • 7,378
  • 4
  • 37
  • 54
  • 3
    Hi. thanks. Could you let me know whether this will kill the child processes also? Equivalent of the /T. – Müller May 09 '16 at 11:30
  • I googled for this, found http://morningcoffee.io/killing-a-process-and-all-of-its-descendants.html , which seems to indicate that it does *not* kill the child processes. It covers some options on how to pursue them, though. – LastTigerEyes Aug 25 '20 at 17:06
  • So as I understand, since it is an equivalent of `kill -9`, `taskkill` is killing process without allowing it to properly perform clean-up process (like removing temporary files). Is there any other option to kill process on Windows? – matandked Jan 20 '22 at 10:09