Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 post Linuxlike 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.

like image 556
Cher Avatar asked Jul 07 '15 14:07

Cher


People also ask

How do you kill a process in Windows using CMD?

a) Type the following command into the command prompt, to kill only the one Process, and press Enter Key. For Example - To kill Notepad, run the command as, taskkill /IM notepad.exe /F , where /F is used to kill the process forcefully.

How do I kill a process in Windows?

To kill the process in Windows, you can use Task Manager, Command Prompt, or Windows Powershell. By using Task Manager, select the process and hit the “End Task” button to kill the process. You can kill the process with Command Prompt by specifying PID or Image name in the “taskkill” command.

What is kill in CMD?

The kill command sends a signal (by default, the SIGTERM signal) to a running process. This default action normally stops processes. If you want to stop a process, specify the process ID (PID) in the ProcessID variable.


2 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?

like image 111
J2R5M3 Avatar answered Sep 23 '22 17:09

J2R5M3


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

like image 30
carlvdm Avatar answered Sep 22 '22 17:09

carlvdm