How to terminate a program running from the Sublime Text 2 terminal once entering an infinite loop?
22,380
Solution 1
Execute this command:
ps -A | grep sublime
result Example :
2547 ? 00:02:37 sublime_text
You will kill process with :
kill -9 2547
Solution 2
killall sublime_text
works for me Sublime Text 3 Ubuntu 16.04
Solution 3
on MAC:
kill -9 $(pgrep Sublime)
Solution 4
$ ps aux | grep Sublime
bibhas 646 0.0 4.2 3489812 177340 ?? S Fri08PM 29:17.03 /Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2 -psn_0_487543
$ sudo kill -9 646
Solution 5
One simple and brutal way is to just kill the process of what the program is running on. For example, if you are running a java program, then use $killall java
.
Author by
Aerlusch
Updated on April 06, 2020Comments
-
Aerlusch about 4 years
Even If I close sublime the process continues to go, seeing as my laptop revs until slowing down to a crawl a few minutes later. I'm on mint linux, and can't seem to kill the process from terminal either.
-
Mikko Ohtamaa about 11 yearsThere is no reason why you could not kill the process from a terminal. Can you please show the process listing using ps and tell us how you tried to kill it.
-
-
Happy Coder over 10 yearsThis is happening to me also in Ubuntu. I tries to kill it with the ID like you have suggested. But still it is here. When I run ps again it is still there with same ID
-
Happy Coder over 10 yearsI am also getting it like that. Any one have any idea how to kill it. ? because one instance is running, I am not able to open sublime again,