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.
So I'm reading a book about linux to try and learn more about it. I got to a section bout run levels but it didn't relly explain what they do/are. it just seemed like it ws just for when you wanted that process to run. what happens if you change the run levels? The book explained it poorly and I would appreciate some clarification.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
run levels are (at least from my interpretation), simply put, ways of configuring what services are running on the machine, usually the higher the 'runlevel' the more that is configured to run, different distributions handle them differently, but most if not all have runlevel 0 as shutdown, runlevel 6 as reboot and 1/6 as single user mode (only a single root shell and perhaps bare minimum graphics drivers) everything in between is up to the distribution, but they can be customized using runlevel editors so you could have one run a webserver, one a desktop etc..
sorry to seem confusing, but run-levels can be confusing
that makes a little more sense I guess. the run levels are kind of like a precedence setter. it's kind of like "this service is more important that that service" thus the higher run level? Do the run levels boot up in order?
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
no, they don't, they are more of a preconfigured set of services that run when invoked, you COULD arbitrarily set anything to run in any runlevel, though as i mentioned, different distributions have their own default sets services on each runlevel, but you could have say runlevel 2 have a webserver and runlevel 3 have your desktop, etc..
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
they do not boot consecutively otherwise your system wouldn't boot at all since runlevel 0 is halt as a standard for all distributions, if they were booted consecutively the first runlevel that would be reached would be to halt the system, you chose the runlevel that is booted, often times in /etc/inittab, but some distributions have different ways of setting this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.