How to kill the process in CentOS or Ubuntu

If we need to kill a process at CentOS or Ubuntu, we can do this as follows:
1. Log in as the root user.

2. Find the process we need with the command:

Where {process_name} is the process name. For example, MySQL.
3. Then execute the following command:

Where PID is the process ID.

That is all!

Was this article helpful?
Dislike 0
Views: 35
Ihor Klymchuk

Ihor KlymchukTechnical Lead

Rate us
1 Star2 Stars3 Stars4 Stars5 Stars
(13 votes, average: 4.92 out of 5)
Bottom Top