码迷,mamicode.com
首页 > 系统相关 > 详细

Running levels in Linux

时间:2014-08-17 01:13:01      阅读:199      评论:0      收藏:0      [点我收藏+]

标签:linux   running level   

Linux system has several running levels:

0 - shutdown

1 - single user

2 - multi user without Internet services

3 - multi user with Internet services

4 - unused and reservered

5 - GUI

6 - Reboot


We can use the "Init *" command to change running level of the system.


To change the default setting of running level, we need to edit the file "/etc/inittab":

"id:*:initdefault".


Often, we may have probles of setting a wrong default running level. We need to press "e" on the interface of grub guidence. Then we need to add 1 to the second line. The reason is that Linux will read inittab file before boot except for running level 1. We can go to running level 1 and then change the "/etc/inittab" file.


Basically, this is a bug for the Linux system and it is necessary for system admin to set passwords for grub interface.


In running level 1 - single user mode, we can directly change the password of root.


Running levels in Linux,布布扣,bubuko.com

Running levels in Linux

标签:linux   running level   

原文地址:http://9277293.blog.51cto.com/9267293/1541042

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!