Linux RunLevel & Single-user mode & Rescue mode

Source: Internet
Author: User

Run level

init 6 = = REBOOT = = Shutdwon-r now restart

init 0 = = Shutdown-h now off


Single-User mode

Press any key---> Press E to edit the 2nd item in three seconds after startup and press E---press 1--> at the end and press B to start-up in a few seconds into single-user mode--Change the password and restart with password


Rescue mode

Disc Boot Mirror--Select the third item rescue installed system--> whether to select Network--and whether to mount the original system to the repair system, select continue--> use chroot/mnt/ Sysimage switch to the original system and select Shell--> to enter the original system cd/mnt/sysimage--> Edit VI etc/passwd If you want to change the passwd configuration file


Change the root password in rescue mode

1.chroot/mnt/sysimage (Prompt changes the original bash-4.1 becomes sh-4.1)

2.PASSWD Change Password

3.exit Exit and reboot

Linux RunLevel & Single-user mode & Rescue mode

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.