Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian and derivatives; dabbled in others
Posts: 26
Rep:
Re: kill <pid> does not do anything
Quote:
Originally posted by moskito01 I thought kill can kill every Process?
Or what am I doing wrong...
Try ~$ man kill
for example
...For a process to have permission to send a signal to a process designated
by pid, the real or effective user ID of the receiving process must match
that of the sending process or the user must have appropriate privileges
(such as given by a set-user-ID program or the user is the superuser)....
Also, some processes are so screwed up that they will ignore a soft kill command. Running 'kill <pid>' asks the process to wrap up loose ends and tidy up then die. If the process is hung it may not listen. Try a 'kill -9 <pid>' which will kill it outright with no cleanup. Sometimes it is the only way to kill a hung/misbehaving process.
Thank you all.
I already knew that sufficient permissions are required to kill a process.
But I did not know the -9 Stuff.
Using kill -9 <pid> worked perfectly.
Just as a side note... a utility I use that I find useful is HTOP. It gives a visual look @ all running pid's etc...
Not only that, but it's quite handy to kill those mad processes. Press 'k', then select the signal you want to send to the process in the list that will appear to the left. In most cases, you will want either the default 15 (SIGTERM) or 9, as in the kill command above (SIGKILL).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.