LinuxQuestions.org
Help answer threads with 0 replies.
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 06-03-2008, 08:47 AM   #1
andreas_skw
Member
 
Registered: Jan 2008
Location: Indonesia, tanah air beta
Distribution: Knoppix v5
Posts: 97

Rep: Reputation: 15
Please Explain To Me All About InitLevel


Actually, what is initlevel? Is it have any different with inittab?

please free to visit me!
---------------------------
www.andreaslm.wordpress.com
==========================================================================
"I am a website which contain linux, about aur earth and my life! Thanks"
 
Old 06-03-2008, 09:03 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
I think you mean run level and the relavant init scripts defined in /etc/inittab.

However boot up scripts for linux fall to 2 camps...bsd style I think slackware still use and most others use sys v.

the main difference is combined or separate /etc/rc run levels for example runlevel 5 you will find the init scripts in /etc/rc.5/
 
Old 06-03-2008, 10:39 AM   #3
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
The runlevel determines what will be loaded as the system boots up. If you are an administrator and want to work on the system without other users being able to login, you'll boot to one runlevel. If you are a user and want to work solely on a command-line, you'll boot to another runlevel. If you want to boot straight to X, then you'll boot to a third runlevel.

There's a ton of info at Wikipedia...
-- http://en.wikipedia.org/wiki/Runlevel
 
Old 06-03-2008, 11:59 AM   #4
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
There are 7 run levels

0: = halt or shutdown
1: = single-user
2-5: = multi-user
6: = reboot

Run levels 0 and 6 are self explaining, If you want to shutdown your system from the CL as root give the command init 0 and the system will shutdown.
Or to reboot the command would be init 6

In Debian the default run level is 2 but all the multi-user run levels are the same or should I say load the same programs, its up to the admin to set up the run level for the user if they want to have specific programs load or not load.
 
Old 06-03-2008, 04:09 PM   #5
TravisOSF
Member
 
Registered: Dec 2003
Location: Raleigh, NC
Distribution: Fedora 8, RHEL 3,4,5, Ubuntu 8.04
Posts: 215

Rep: Reputation: 30
something i don't think was mentioned that is worth mentioning:

inittab is used to control these init scripts, or runlevels. you can further control what is started in fedora and redhat with the chkconfig command. (greatest tool ever imo)
 
Old 06-04-2008, 04:27 AM   #6
andreas_skw
Member
 
Registered: Jan 2008
Location: Indonesia, tanah air beta
Distribution: Knoppix v5
Posts: 97

Original Poster
Rep: Reputation: 15
So if i want to shutting down my system, i need to type

root@computername$ init 0

Is that right?


Thanks for answering my questions.

please free to visit me!
---------------------------
www.andreaslm.wordpress.com
==========================================================================
"I am a webblog which contain linux, about our earth and my life! Thanks"
 
Old 06-04-2008, 04:50 AM   #7
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
Quote:
andreas_skw

So if i want to shutting down my system, i need to type

root@computername$ init 0

Is that right?
If you are already logged in as root then yes, just type init 0

Your prompt will look like so as root root@computername#
 
Old 06-04-2008, 06:23 AM   #8
andreas_skw
Member
 
Registered: Jan 2008
Location: Indonesia, tanah air beta
Distribution: Knoppix v5
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks for the all answer. All information are helpful for me. Thanks

O yeah, i make some note abot dsl in my blog. Please visit and fill my comment, where my mistake so that i can go to right directions. Thanks.

All the best,
Andreas
www.andreaslm.wordpress.com
 
Old 06-04-2008, 07:03 AM   #9
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
Quote:
andreas_skw

please free to visit me!

Quote:
andreas_skw
O yeah, i make some note abot dsl in my blog. Please visit and fill my comment, where my mistake so that i can go to right directions. Thanks.
Is the intent of your posting just to get hits on your blog? If that be the case LQ is for learning and helping others with the Linux OS NOT so you can advertise your blog!!
 
  


Reply

Tags
inittab



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
Can someone explain this to me, please? Hammett Linux - Software 3 02-16-2006 08:02 PM
Can some one please explain this to me webwolf70 SUSE / openSUSE 1 10-15-2005 02:22 AM
Can ANYONE explain this? jimsproch Programming 11 01-03-2005 06:49 AM
please someone, do explain this to me... Tisch Slackware 4 01-17-2004 10:37 AM
can anyone explain this? log Linux - Software 2 06-10-2003 12:30 AM

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

All times are GMT -5. The time now is 04:17 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