Introduction to how to enter single-user mode in Linux

巴扎黑
Release: 2017-08-22 14:08:58
Original
3406 people have browsed it

RedHat7.2 How to enter a single user when using the GRUB boot program

1. When the GURB boot screen appears, press the letter e to enter the GRUB editing state

2 In the boot menu Then add "1" or single, select it, and then press the letter b to boot into single-user mode.

For example:

red hat linux 7.2, the boot menu when not edited is:

RedHat Linux (2.4.7-10) root (hd0,1)kernel /boot /vmlinuz-2.4.7-10 ro root=/dev/hda2

Then edit, add "1" or single after it, so that it is as follows: RedHat Linux (2.4.7-10) root ( hd0,1)kernel /boot/vmlinuz-2.4.7-10 ro root=/dev/hda2 1.

In single-user mode, use the passwd command to change the password.

Reboot the system

RedHat9 How to enter a single user when using the GRUB boot program

When using GRUB, you can add an S (capital S) to the kernel command line, Can enter single user mode. To do this, you need to restart the system. When the GRUB screen appears:

1. Use the arrow keys to select the kernel you want to boot.

2. Press the e key to edit this command line.

3. Select the line starting with the word kernel.

4. Press the e key to edit this command line.

5. Add a letter S at the end of the line

6. Press Enter to accept the changes.

7. Press b key to accept the modification and start the kernel.

This will enter single-user mode and you can execute commands under bash.

The above is the detailed content of Introduction to how to enter single-user mode in Linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!