CTRL+C will send a break (stop execution) when no text is selected. Try it ;-)
Reference
Answer from misha256 on Stack ExchangeCTRL+C will send a break (stop execution) when no text is selected. Try it ;-)
Reference
I had the same thing happening with Ctrl+C not stopping the Tracert process. However Ctrl+Pause/Break did.
This was on Windows 10 build 1709 with updates current as of 06-27-2018. I suspect whatever is going on will be machine specific for some odd reason.
What is the shortcut command to kill a process in a Windows command window? - Stack Overflow
c# - How to terminate a command issued to cmd.exe - Stack Overflow
windows - How to stop currently running process in cmd without stopping the batch execution? - Stack Overflow
How to exit back to cmd prompt after certain commands
Videos
Did you try the following key combination: CTRL+C
UPDATE
For Windows 10 (cmd, PowerShell) you can use one of this:
- Right CTRL+C
- CTRL+Pause/Break
First use tasklist to show all running tasks. Then use taskkill /PID 1234 to kill a specific task (PID is the second column) or use taskkill /IM program.exe to kill a specific programm (all instances).
Or just use Ctrl+C to kill current running programm in current cmd window.
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, and /IM means you're going to provide the running executable that you want to end, thus process.exe is the process to end.
Try to use Alt + F4.
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
So for example I do sudo systemctl status fail2ban, it gives the details and then it has the
"lines 1-14/14 (END)"...How do I exit this? I tried alt-x typing exit etc This has been bugging me for a while and every time I search google I just go down a rabbit hole!