Running levels in Linux

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

时间: 2024-10-12 07:29:47

Running levels in Linux的相关文章

Show All Running Processes in Linux

ps由于历史的原因,所以很奇特,有些命令必须加"-",比如: ps A 上面的写法是错误的 ********* simple selection ********* ********* selection by list ********* -A all processes -C by command name -N negate selection -G by real group ID (supports names) -a all w/ tty except session le

Running a Remote Desktop on a Windows Azure Linux VM (远程桌面到Windows Azure Linux )-摘自网络

A complete click-by-click, step-by-step video of this article is available here. OR… You can read the article, line-by-line. It all starts with a Linux Server running in the Windows Azure cloud… Onto this you’ll install a remote desktop protocol (RDP

How To Install Linux, nginx, MySQL, PHP (LEMP) stack on CentOS 6

About Lemp LEMP stack is a group of open source software to get web servers up and running. The acronym stands for Linux, nginx (pronounced Engine x), MySQL, and PHP. Since the server is already running CentOS, the linux part is taken care of. Here i

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu

About LAMP LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the virtual private server is already running Ubuntu, the linux part is taken care of. Here i

Linux常见命令

NAME w -- display who is logged in and what they are doing uptime -- show how long system has been running top - display Linux tasks        ps - report a snapshot of the current processes.

在RedHat 和 Ubuntu 中配置 Delphi 的Linux开发环境(转)

原文地址:http://chapmanworld.com/2016/12/29/configure-delphi-and-redhat-or-ubuntu-for-linux-development/ 方便大家使用,直接转过来. Image courtesy of Jim McKeeth. One of the more exciting features of the pending 10.2 release of Delphi and RAD Studio, is support for t

Linux 日志异常tpvmlpd[4966]: device type not supported

1. 虚拟机vmware下linux message日志异常信息如下: ...... Nov 25 19:33:17 rac1 tpvmlpd[4415]: device type not supportedNov 25 19:33:32 rac1 tpvmlpd[4521]: device type not supportedNov 25 19:33:47 rac1 tpvmlpd[4681]: device type not supportedNov 25 19:34:02 rac1 tpv

Linux 的启动流程

作者: 阮一峰 半年前,我写了<计算机是如何启动的?>,探讨BIOS和主引导记录的作用. 那篇文章不涉及操作系统,只与主板的板载程序有关.今天,我想接着往下写,探讨操作系统接管硬件以后发生的事情,也就是操作系统的启动流程. 这个部分比较有意思.因为在BIOS阶段,计算机的行为基本上被写死了,程序员可以做的事情并不多:但是,一旦进入操作系统,程序员几乎可以定制所有方面.所以,这个部分与程序员的关系更密切. 我主要关心的是Linux操作系统,它是目前服务器端的主流操作系统.下面的内容针对的是Deb

linux的性能优化

转一位大神的笔记. linux的性能优化: 1.CPU,MEM 2.DISK--RAID 3.网络相关的外设,网卡 linux系统性能分析: top:linux系统的负载,CPU,MEM,SWAP,占用CPU和内存比较的进程,杀死占用性能高的进程. [[email protected] ~]# top top - 22:45:24 up 22:53, 5 users, load average: 0.00, 0.00, 0.00 当前的时间,开机时间为22小时53分钟,5个用户在线,linux系