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" |
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/ |
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 |
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. |
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) |
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" |
Quote:
Your prompt will look like so as root root@computername# |
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 |
Quote:
Quote:
|
All times are GMT -5. The time now is 05:27 PM. |