Home >Operation and Maintenance >Linux Operation and Maintenance >What to do if you forget your password in Linux
What should I do if I forget my Linux password?
1. When turning on the computer, keep pressing ESC
2. Then enter the following interface , press the letter “E” key
3. Select the second one, and then press the letter “E” key (if you choose the wrong one, Press esc to return to the previous interface)
4. Enter single-user mode
Enter: 1 or single, Then press Enter and enter: B
5. Although the interface returns to the previous step, the operation we did has actually been saved
6. Change the password
Enter: passwd (default is to change the root password, you can also enter passwd normal User name , change the ordinary user password)
Then enter the new password
Recommended: " Linux usage tutorial》
The above is the detailed content of What to do if you forget your password in Linux. For more information, please follow other related articles on the PHP Chinese website!