Stop Command Execution Using Shortcut key
First, open the command prompt, and execute the below mentioned command:
npm install bootstrap
To terminate this command execution instantly, use the following shortcut to end cmd process.
CTRL + C
or
Ctrl+ Pause/break
After you press the button a message will appear whether you want to terminate this batch job (Y/N)? i.e. ‘Yes’ or ‘No’ as shown below:
Type ‘Y’ and hit “Enter” to terminate the process.
What if You Type ‘N’?
The Command will continue to execute if we type ‘N’ when prompted. Take a look at the below image where we run the below command:
npm start
Then we hit Ctrl+C to terminate the execution. When prompted for confirmation, we type in ‘N’ as shown below:
As you can see, after typing ‘N’, the command continued its execution and completed it.
How to Abort a Command Execution in Command Prompt?
Command Prompt is an interpreter that helps us to execute various commands and functions. It helps perform tasks, troubleshoot issues, and manage files more efficiently.
But what if the command prompt gets stuck while executing a command? In that case, several questions might come to your mind like, ” How to get out of it?”, “Do I need to close the prompt?”, “Can I continue from the same place where I left?”
We will find these answers in this article. We will find out if we can kill a currently running process, and shortcut key to end the process. Also, we will discuss a few FAQs at the end.
Contact Us