Can any one tell what is default run level in Linux
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
0 — Halt
1 — Single-user text mode
2 — Not used (user-definable)
3 — Full multi-user text mode
4 — Not used (user-definable)
5 — Full multi-user graphical mode (with an X-based login screen)
6 — Reboot
Every system has the default runlevel set by the admin, so it can change from system to system. I use 4 (slackware-type) or 5 (Red Hat-type) most often except on my old server (RIP), which used 3.
Last edited by Timothy Miller; 06-08-2013 at 01:52 PM.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by Timothy Miller
Yeah, while I love Debian, their runlevels seem absolutely arbitrary...
You're telling me. I hate to admit but I'd not checked the runlevels in Debian before, since I always boot into a GUI, so I hadn't realised how arbitrary they were.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Quote:
Originally Posted by Timothy Miller
Yeah, while I love Debian, their runlevels seem absolutely arbitrary...
Runlevels are arbitrary. IIRC there are several live distros using several more levels for several other flavors of the running environment. It is just a matter of configuration and configuration have been enumerated.
However, for the sake of uniformity it would have been better if a de facto standard had evolved in the course of time. I remember switching from RH to Debian as a newbie and heck I could not understand why Debian would not show X runlevel 5.
@OP: just to emphasise/extend tronayne's comment, /etc/inittab lists all the available runlevels, what they mean and what the the current default is; see last line
Code:
# Default runlevel. The runlevels used are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.