Nov 8, 2018

How to kill process in Linux

You can kill a process by id or name, kill a process by specifying part of the name, killing a process by pointing out the process with cursor.

kill by id:
kill -9 188

kill by name:
$ killall -9 java

kill by full name or partial name:(pgrep can help you to show processes with the name)
$ pkill partial-process-name

Finally, xkill instructs XServer to terminate the client
$ xkill