In last article we used the command to get all running process from our server. In the following I will show you how to kill a process which is running in the background in centos. To achieve this you only need a two words command, the command “kill” followed by the PID of the process, you can get the PID following this tutorial .
Once you have the PID of the process you want to kill you can run the following command to stop it from running in background. Once you have run the command the process will never start again, only if you want to start it again.
This command will stop the script which has PID “15320”.