The ordinary way of killing process on Linux
Generally, when we want to kill any process on the Linux system, we use the kill command. To kill a process first we should know the PID of the respective process. Then we provide this PID to the kill command as the argument. We can find the PID of a process using the following command:
ps -A | grep -i processName
To kill the process, pass the PID to the kill command. For the above example:
kill 7507
There is a more simple way than passing the PID of the process to kill command to kill the process. pkill is a command using which we can kill the process using the name of the process. For the above example, we can kill gvim with pkill using the following command:
pkill gvim
pkill is an awesome command, but it is preferred to use the kill command to know more about the killing process.
How to kill processes on the Linux Desktop with xkill
xkill is a command-line utility that can kill the undesired windows on the user’s screen. Basically, xkill force the X server to close the connection to the client. This utility kills the programs without providing PID with a command. Now let’s see how to install the xkill on the systems.
Contact Us