Working with processes
From Oxxus Wiki
To get the list of all running processes on the system you would type:
ps aux
You can see all processes there along with CPU/Memory percentage of use under your system. All processes contain their names and PIDs.
To kill process you can use kill command, kill [pid] would terminate the process.
Usually when process hangs, you would need to send to the kernel force kill signal -9, kill -9 [pid] would that way remove the running process by force and it's usually the fastest way to remove the running process.
There is also a killall command which would kill all the processes running under a specific name.
For example:
killall -9 java
would immediately terminate all java processes.