To kill a process in Linux, you can use the
kill command followed by the process ID (PID) of the process you want to kill. For example:
This will send a termination signal to the process with PID 1234.
To find the PID of a process, you can use the
ps command with the
aux options. For example:
This will list all processes running on the system, along with their PIDs, usernames, and other information.
If the process does not respond to the termination signal, you can use the
kill command with the
-9 option, which sends a kill signal to the process. For example:
kill -9 1234
This will forcibly terminate the process with PID 1234.
Keep in mind that killing a process can cause data loss or corruption, so use this command with caution.
For more information, you can consult the
ps man pages by running
man kill and
man ps on the command line.