what is shortcut command to kill process in windows command?

Problem :

I have a process in windows command which cannot be killed. I tried taskkill and all the shortcuts in this postLinuxlike Ctrl-C (KeyboardInterrupt) for the Windows cmd line?

It refuses to die, even Windows task manager doesn't work to kill the command prompt. This program is resistant.

4

3 Answers

Ctrl + C should stop a program running from the command prompt, similar to linux.

If that doesn't work try to force kill a process from the command prompt, using the following command:

taskkill /F /IM process.exe

/F will force termination of the process, /IM means you're going to provide the running executable that you want to end, thus process.exe is the process to end.

tried using alt + F4?

3

I was in a similar situation where exit() and Ctrl+Z were the commands used to escape.

Typically entering exit (or logout) will provide you with assisting information, in my case I had the following output:

Use exit() or Ctrl-Z plus Return to exit

1

In Windows:

First try: Ctrl + C If it doesn't work then try pressing q

In MAC OS:

Press Cmd + C or Ctrl + C or q

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like