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.
It's running as a java process so you can use
(Warning! This command kills all java processes)
Source: Intellij support forum
You can list all processes with
and you can search processes with
Then you can kill the process you want with
You can read more about it here