LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2004, 12:13 AM   #1
yi_dong2004
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
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!
 
Old 10-29-2004, 12:46 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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]

Last edited by MasterC; 10-29-2004 at 01:11 AM.
 
Old 10-29-2004, 01:36 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

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

Last edited by Bruce Hill; 10-29-2004 at 01:39 AM.
 
Old 10-29-2004, 03:19 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
? Maybe you meant a different post?
 
Old 10-29-2004, 03:22 AM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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
 
Old 10-29-2004, 03:28 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Thanks for keeping an eye out

Cool
 
Old 10-29-2004, 03:43 AM   #7
yi_dong2004
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 10-29-2004, 04:39 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 10-29-2004, 07:43 AM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.

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....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Explained: "kernel panic - not syncing - attempted to kill init" sundialsvcs Linux - Software 36 04-24-2010 08:58 AM
What would happen if "kill -9 1" is issued yi_dong2004 Linux - General 1 10-29-2004 12:57 AM
Will "grub-install /dev/hda" kill Windows XP MBR? Zullocrit Linux - Newbie 3 09-25-2004 09:50 AM
How to kill a session in "pts/0" idle for 209d? (Redhat-9) francio Linux - Newbie 2 07-28-2004 05:54 PM
"Attempted to kill idle/init task" during installation of Mandrake 10 e.fabene Mandriva 0 06-08-2004 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration