Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stopping a PowerShell command

Tags:

powershell

How do I stop a PowerShell command when it has started executing?

E.g. How do I stop a command like this

Select-String -Path c:\*.* "Cat"

without having to kill my PowerShell terminal?

Ctrl-C or Break does not work.

like image 437
Generic Name Avatar asked Aug 12 '26 18:08

Generic Name


1 Answers

While the script runs type Ctrl+Break.

like image 91
Jay Avatar answered Aug 14 '26 08:08

Jay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!