All Linux/Unix systems include the command ps and kill. You can use them to list, kill, or terminate a process, but first you need to know its PID.
To find the PID of a particular process, you can use the ps command:
# ps aux
This command displays a list of the processes active at the time it is run:
As you can see in the image, the PID of each process appears in the second column from the left. Once you have the PID of the process you want to terminate, you can use one of the following commands:
# kill pid_del_proceso
This command kills only the process with the PID you specify. By adding the -9 option to the same command, you force the operating system to kill the process. This is very useful when a process has become unresponsive and cannot be killed using just the kill command:
# kill -9 pid_del_proceso
With the command killall you kill all processes being run by the program you specify:
# killall nombre_programa
Finally, with the command pkill you can find all processes that match the specified criteria and send the signal SIGTERM. For example, "pkill fire" would kill both the firefox process and the firebird process, since the string "fire" appears in both:
# pkill palabra_busqueda
Remember, if you have questions about this or any other issue related to your servers at Clouding, feel free to write to soporte@clouding.io We're here for whatever you need!