LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 04-23-2003, 05:34 PM   #1
sadiboyz
LQ Newbie
 
Registered: Apr 2003
Location: wollongong, australia
Distribution: red hat
Posts: 28

Rep: Reputation: 15
run level in LINUX


what is run level, could any one please explain a bit, and direct me to some good source where i can read more about it.
Thanks
 
Old 04-23-2003, 05:59 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I'd recommend the Linux-From-Scratch guide
and From-PowerUp-To-Bash-Prompt
on http://www.tldp.org for reading ...


Cheers,
Tink
 
Old 04-23-2003, 07:32 PM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Amen for reading so check all that out, but you also asked for a bit of explanation, so for the Cliff notes version: depending on your distro, there's a set of scripts or set of directories containing links in /etc/rc.d or the like. Runlevel means that these scripts are run. If 0 is set to reboot, 6 to halt, 5 for X, 3 for multiuser, 1 for single-user, etc., those scripts are run to set the machine up for those tasks or modes. So that 5 will start the X server when 3 won't, say, because it's needed for runlevel 5 and not for 3 and is in the scripts for 5 and not 3. t least, that's my understanding.

Sometimes the extended reading can leave me more confused than before, depending on the question I have and the context or simple understanding I may lack. Once I've got *any* handle, the more detailed explanations make more sense. And sometimes I'm in the middle of something and under time pressures so a quick grasp helps. But lotsa reading is always recommended.
 
Old 04-23-2003, 10:56 PM   #4
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Here is my two cents. Saying stuff similar to what digiot has said, but adding another perspective.


Linux can be set to run in various ways. These setting can be set so that it boots up a certain way.

If you set the run level to 5, Linux will boot up and run X Windows. If you set the run level to 3, it will boot up to the command prompt.

It is a bad idea to set the levels to 0 and 6 because these will cause the machine to reboot and halt, respectively.

There is a file where you can set the run level option. I cannot remember the name just now but the available literature should give you the name.

If you can't find the info, give us a shout.
 
Old 04-24-2003, 12:52 AM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Yeah - that's the default runlevel, though - from CLI you can do an 'init 6' or whatever instead of the three-finger salute but you definitely don't want that as default. *g* Unless you just like to watch your computer do loops.

And reading over what I said, I realize at least one thing was off about the way I put it. It's not like '5' means anything. You don't need X for 'runlevel 5' - you need X for a GUI and *if* you want that to be runlevel 5, then the scripts for that runlevel go accordingly. Maybe a minor difference, but just pointing out that different distro's runlevels are set up different ways and the number doesn't mean anything but what it's configured to mean.

edit - the file's inittab, btw. or usually is, anyway. I think it always is.

Last edited by slakmagik; 04-24-2003 at 12:53 AM.
 
Old 04-26-2003, 11:17 AM   #6
phantom0810
LQ Newbie
 
Registered: Apr 2003
Posts: 16

Rep: Reputation: 0
Use command "init ?" to specify any runlevel (where n is number 1 to 6)
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Level 3 webwolf70 Mandriva 5 01-17-2005 10:41 PM
run level 4 sethgeekx86 Slackware 2 04-15-2004 06:43 PM
What is run level? ejennings_98 Linux - Newbie 8 11-05-2003 04:46 PM
Run level Joey.Dale Linux - General 4 06-18-2003 04:59 PM
Run Level POWERBOOKM Linux - Newbie 2 12-01-2001 08:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:18 PM.

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