LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What would happen if I issued "kill -9 1" (https://www.linuxquestions.org/questions/linux-newbie-8/what-would-happen-if-i-issued-kill-9-1-a-248636/)

yi_dong2004 10-29-2004 12:13 AM

What would happen if I issued "kill -9 1"
 
Hi every expert:
My question is:
What would happen if I issued the command "kill -9 1"

I tried it, it seems nothing happened. Should this command kill the init process? Can anyone please explain to me ?

Thanks very much in advance!

MasterC 10-29-2004 12:46 AM

What process is number 1? If you type:
ps -aux | less
Then you can view your running processes, and see which one is '1'.

And a kill 9 means 'do it now!' rather than 'please shutdown at your next convenience' which is a 15.

Cool

[edit]
I realize it's likely init.
[/edit]

Bruce Hill 10-29-2004 01:36 AM

It would not allow you to post before you read the rules so
that you wouldn't double post the very first day!

MasterC 10-29-2004 03:19 AM

? Maybe you meant a different post?

Bruce Hill 10-29-2004 03:22 AM

Sorry Chad I was being a smart-alec. His first post was a double, once here and one in Linux - General
http://www.linuxquestions.org/questi...hreadid=248638

MasterC 10-29-2004 03:28 AM

Thanks for keeping an eye out ;)

Cool

yi_dong2004 10-29-2004 03:43 AM

Sorry and Thanks
 
I am sorry I did not know the rules.

To MasterC:
PID= 1 is the init process.

According to my knowledge, kill the init process with -9 will immediately make the computer down, but it seems nothing happened.

MasterC 10-29-2004 04:39 AM

I wouldn't think so, but rather that nothing can be init, or initialized/deinitialized if the init process is not running... But that's just my speculation.

Cool

trickykid 10-29-2004 07:43 AM

Re: Sorry and Thanks
 
Quote:

Originally posted by yi_dong2004
I am sorry I did not know the rules.
That's funny, cause you agreed to them when you registered for this site. :rolleyes:

Quote:

To MasterC:
PID= 1 is the init process.

According to my knowledge, kill the init process with -9 will immediately make the computer down, but it seems nothing happened.

And what is the purpose of you killing init? Are you even doing this as root? Why don't you just shutdown your machine the normal way.... :rolleyes:


All times are GMT -5. The time now is 08:47 AM.