63

I can't close the IntelliJ IDEA when it hangs, how can I close it from the terminal?

P.S.: I think this question is different from "How to kill a unresponsive program from terminal?" because IntelliJ's process has name just 'java' so you can't really tell it apart by its name.

frostman
  • 1,907

2 Answers2

94

It's running as a java process so you can use

killall java -9 

(Warning! This command kills all java processes)

Source: Intellij support forum

frostman
  • 1,907
9

You can list all processes with

ps aux

and you can search processes with

pgrep <process name>

Then you can kill the process you want with

sudo kill -KILL <pid>

You can read more about it here

Shawn
  • 103
  • 3
Kris
  • 201