How do you kill a PID process on Linux?

sysadmin
#1

Say I have a PID for process called 1234. How do you kill a PID process on Linux? It always says permission denied on Linux bash shell:

bash: kill: (1234) - Operation not permitted

Please help.

1 Like
#2

Run with sudo or su to get rid of Operation not permitted error on Linux:

sudo kill -15 1234
sudo kill -9 1234

OR

su -
kill -9 1234

See

And

1 Like
#3

Super quick.

sudo kill (your pid)