Home>Article>Operation and Maintenance> What does single mean in linux?

What does single mean in linux?

little bottle
little bottle Original
2019-05-29 17:42:35 4855browse

The commonly used startup methods under Linux include single-user mode, ordinary multi-user mode, complete multi-user mode and XWin mode. Today I will talk to you about single-user mode (single).

What does single mean in linux?

In Linux, single refers to single-user mode.

So what is single-user mode?

In single-user mode, the system is not fully running, only some programs are running, and you cannot remotely log in to the Linux system at this time.

Entering the single-user mode for system maintenance is completed by the ROOT user, and it is entered directly from the ROOT without password verification.

At this time, the ROOT user has full operating authority over the system. While repairing the system, it can also destroy the system at any time.

How to enter single user

1) Set the uboot environment variable and add single;

2) Floppy disk boot

When "BOOT:" appears after the floppy disk starts, you can set the startup parameters. After typing "Linux single" here, you can start the system in single-user mode.

3) LILO mode

When starting in LILO mode, after the LILO prompt appears, you should quickly enter kernel/boot/vmlinuz-2.4.7-10 single roo =/dev/hda3, here I use REDHAT7.2, the kernel is 2.4.7-10, the general file name is vmlinuz when using it, you can copy this kernel file or establish a connection when the system is normal. single means single use. root=/dev/hda3 is the location of the root of the Linux system. My computer is equipped with 98, if it only has Linux. It may be /dev/hda1. On the second hard disk, it is /dev/hdb1. Here is how Linux identifies partitions.

4) GRUB method

This method is more complicated to boot. When entering the GRUB startup screen, press "C" to enter the GRUB command line. , press "P" when there is a password, enter the password, and then enter the GRUB command line.

Enter the following command on the command line to enable single user. I still use REDHAT7.2 as an example to illustrate kernel /boot/vmlinuz-2.4.7-10 single root=/dev/hda3initrd/boot/initrd -2.4.7-10.img boot (hd0,2) The first and second sentences indicate the kernel file. The keyword for single user is still single. Depending on the system, the file name may be different. boot (hd0,2) means booting from the third partition of the first hard disk.

The above is the detailed content of What does single mean in linux?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn