How to end task with PID in Linux
To end a task with a specific PID in Linux, you can use the kill command.
$ kill <PID>For example, if the PID of the task you want to end is 12345:
$ kill 12345If the task does not respond to the kill signal, you can try using the -9 option, which sends the SIGKILL signal:
$ kill -9 <PID>nnnnnnnnnnn(Valium)