当前位置: IT大杂烩 > Ubuntu  > Running levels in Linux

Running levels in Linux

www.someabcd.com  网友分享于:Jun 8, 2018 6:06:33 PM

标签: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   

发布此文章仅为传递网友分享,不代表本站观点,若侵权请联系我们删除,本站将不对此承担任何责任。
Copyright ©2018  IT大杂烩  版权所有  京ICP备11030978号-1 网站地图