Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to force stop Intellij on linux

I am using a scratch file for some Kotlin work.

  • I accidentally created an endless loop in one of my functions and ran the file, so Intellij is not responding.

  • There is no button for stopping the execution of the scratch file and even if there were, that wouldn't work because Intellij is not responding to mouse clicks.

How do I force stop or restart Intellij in this case?

like image 933
salyela Avatar asked Oct 04 '18 20:10

salyela


1 Answers

You can kill the process by name using

pkill -9 intellij

or by

killall -9 intellij

or even

kill -9 $(ps aux | grep intellij | awk '{print $2}')
like image 140
rgen3 Avatar answered Oct 11 '22 01:10

rgen3