windows windows命令中杀死进程的快捷命令是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31271761/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 19:10:19  来源:igfitidea点击:

what is shortcut command to kill process in windows command?

windowsshortcut

提问by Cher

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?

我在 windows 命令中有一个无法被杀死的进程。我尝试了 taskkill 和这篇文章中的所有快捷方式 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.

它拒绝死亡,即使 Windows 任务管理器也无法杀死命令提示符。该程序具有抗性。

回答by J2R5M3

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

Ctrl + C 应该停止从命令提示符运行的程序,类似于 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.

/F 将强制终止进程,/IM 意味着您将提供要结束的正在运行的可执行文件,因此 process.exe 是要结束的进程。

tried using alt + F4?

尝试使用 alt + F4?

回答by carlvdm

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

我遇到了类似的情况,exit()Ctrl+Z是用于转义的命令。

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

通常输入exit(或logout)将为您提供辅助信息,在我的情况下,我有以下输出:

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

使用 exit() 或 Ctrl-Z 加 Return 退出

回答by Cher

Ended up rebooting the computer, none of the proposed solutions worked.

最终重新启动计算机,建议的解决方案均无效。

回答by Ed Elliott

The thing to do here is use process hacker:

这里要做的是使用进程黑客:

http://processhacker.sourceforge.net/

http://processhacker.sourceforge.net/

Get this and when you find the parent process kill that - it is really good at terminating processes that can't be found.

得到这个,当你发现父进程杀死它时 - 它非常擅长终止无法找到的进程。

for completeness to use taskkill i use this reference:

为了使用 taskkill 的完整性,我使用了这个参考:

https://www.howdoiquitv.im/how-do-i/kill-chrome/on-windows/

https://www.howdoiquitv.im/how-do-i/kill-chrome/on-windows/

replace(chrome with cmd.exe)

替换(铬与 cmd.exe)