How do you kill a PID process on Linux?

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.

2 Likes

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

2 Likes

Super quick.

sudo kill (your pid)


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki